Skip to content

Commit 40a081b

Browse files
committed
d
1 parent 6d6ba49 commit 40a081b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

Dockerfile

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,17 @@
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
2417
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
@@ -32,4 +25,11 @@ RUN cargo install mdbook-pagetoc
3225
RUN cargo install mdbook-tabs
3326
RUN cargo install mdbook-codename
3427

28+
# Set the working directory
3529
WORKDIR /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"]

0 commit comments

Comments
 (0)