File tree Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Expand file tree Collapse file tree 1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change 1- # Dockerfile
2- FROM ubuntu:22.04
1+ # Use the official Python 3.12 Bullseye image as the base
2+ FROM python:3.12-bullseye
33
44# Install system dependencies
5- RUN apt-get update && \
6- apt-get install -y \
7- curl \
8- wget \
9- git \
10- sudo \
11- python3.12 \
12- python3-pip \
13- build-essential \
14- && \
15- rm -rf /var/lib/apt/lists/*
5+ RUN apt-get update && apt-get install -y \
6+ curl \
7+ wget \
8+ git \
9+ sudo \
10+ build-essential
1611
17- # Upgrade pip
18- RUN pip3 install --upgrade pip
19-
20- # Install Python dependencies
21- RUN pip3 install openai tqdm tiktoken
12+ # Install Python libraries
13+ RUN pip install --upgrade pip && \
14+ pip install openai tqdm tiktoken
2215
2316# Install Rust & Cargo
2417RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
@@ -32,4 +25,11 @@ RUN cargo install mdbook-pagetoc
3225RUN cargo install mdbook-tabs
3326RUN cargo install mdbook-codename
3427
28+ # Set the working directory
3529WORKDIR /app
30+
31+ # (Optional) Copy your script(s) into the image
32+ # COPY translator.py /app/translator.py
33+
34+ # (Optional) Set an entrypoint or default command
35+ # ENTRYPOINT ["mdbook"]
You can’t perform that action at this time.
0 commit comments