mirror of
https://github.com/HackTricks-wiki/hacktricks-cloud.git
synced 2026-02-04 11:07:37 -08:00
36 lines
856 B
Docker
36 lines
856 B
Docker
# Use the official Python 3.12 Bullseye image as the base
|
|
FROM python:3.12-bullseye
|
|
|
|
# Install system dependencies
|
|
RUN apt-get update && apt-get install -y \
|
|
curl \
|
|
wget \
|
|
git \
|
|
sudo \
|
|
build-essential
|
|
|
|
# Install Python libraries
|
|
RUN pip install --upgrade pip && \
|
|
pip install openai tqdm tiktoken
|
|
|
|
# Install Rust & Cargo
|
|
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
|
|
ENV PATH="/root/.cargo/bin:${PATH}"
|
|
|
|
# Install mdBook & plugins
|
|
RUN cargo install mdbook
|
|
RUN cargo install mdbook-alerts
|
|
RUN cargo install mdbook-reading-time
|
|
RUN cargo install mdbook-pagetoc
|
|
RUN cargo install mdbook-tabs
|
|
RUN cargo install mdbook-codename
|
|
|
|
# Set the working directory
|
|
WORKDIR /app
|
|
|
|
# (Optional) Copy your script(s) into the image
|
|
# COPY translator.py /app/translator.py
|
|
|
|
# (Optional) Set an entrypoint or default command
|
|
# ENTRYPOINT ["mdbook"]
|