Skip to content

Commit cf64360

Browse files
committed
Refactor Dockerfile to use Python 3.10, 3.11, and 3.12
1 parent 4e409ef commit cf64360

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

Language/python/3.10/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ RUN apt-get update && \
99
apt-get install -y python3.10 python3-pip python3-venv && \
1010
apt-get clean && \
1111
rm -rf /var/lib/apt/lists/* && \
12-
python3 -m venv /home/devbox/project && \
12+
ln -s /usr/bin/python3 /usr/bin/python && \
13+
python -m venv /home/devbox/project && \
1314
chown -R devbox:devbox /home/devbox/project && \
1415
chmod -R u+rw /home/devbox/project && \
1516
chmod -R +x /home/devbox/project/entrypoint.sh

Language/python/3.11/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ RUN apt-get update && \
88
apt-get install -y python3.11 python3-pip python3-venv && \
99
apt-get clean && \
1010
rm -rf /var/lib/apt/lists/* && \
11-
python3 -m venv /home/devbox/project && \
11+
ln -s /usr/bin/python3 /usr/bin/python && \
12+
python -m venv /home/devbox/project && \
1213
chown -R devbox:devbox /home/devbox/project && \
1314
chmod -R u+rw /home/devbox/project && \
1415
chmod -R +x /home/devbox/project/entrypoint.sh

Language/python/3.12/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ RUN apt-get update && \
88
apt-get install -y python3.12 python3-pip python3-venv && \
99
apt-get clean && \
1010
rm -rf /var/lib/apt/lists/* && \
11-
python3 -m venv /home/devbox/project && \
11+
ln -s /usr/bin/python3 /usr/bin/python && \
12+
python -m venv /home/devbox/project && \
1213
chown -R devbox:devbox /home/devbox/project && \
1314
chmod -R u+rw /home/devbox/project && \
1415
chmod -R +x /home/devbox/project/entrypoint.sh

0 commit comments

Comments
 (0)