Add a Python 3.10 venv

This commit is contained in:
Robin Dunn
2021-12-28 22:24:37 -08:00
parent cf0086e09c
commit 6fa094d01e
2 changed files with 7 additions and 3 deletions

View File

@@ -53,6 +53,7 @@ RUN \
apt-get install -y python3.7 python3.7-dev libpython3.7-dev python3.7-venv; \
apt-get install -y python3.8 python3.8-dev libpython3.8-dev python3.8-venv; \
apt-get install -y python3.9 python3.9-dev libpython3.9-dev python3.9-venv; \
apt-get install -y python3.10 python3.10-dev libpython3.10-dev python3.10-venv; \
apt-get clean;
# Add files from host into the container
@@ -72,7 +73,8 @@ RUN \
python3.6 -m venv venvs/Py36; \
python3.7 -m venv venvs/Py37; \
python3.8 -m venv venvs/Py38; \
python3.9 -m venv venvs/Py39;
python3.9 -m venv venvs/Py39; \
python3.10 -m venv venvs/Py310;
# Define default command
CMD ["/bin/bash", "-l"]

View File

@@ -3,7 +3,7 @@ FROM ubuntu:20.04
# Set environment variables
ENV DIST_NAME=ubuntu-20.04
ENV USE_DEADSNAKES=no
ENV USE_DEADSNAKES=yes
ENV USER=wxpy
ENV HOME=/home/$USER
ENV PYTHONUNBUFFERED=1
@@ -51,6 +51,7 @@ RUN \
if [ ${USE_DEADSNAKES} = yes ]; then add-apt-repository ppa:deadsnakes/ppa; apt-get update; fi; \
apt-get install -y python3.8 python3.8-dev libpython3.8-dev python3.8-venv; \
apt-get install -y python3.9 python3.9-dev libpython3.9-dev python3.9-venv; \
apt-get install -y python3.10 python3.10-dev libpython3.10-dev python3.10-venv; \
apt-get clean;
# Add files from host into the container
@@ -68,7 +69,8 @@ RUN \
cd ${HOME}; \
mkdir -p ${HOME}/venvs; \
python3.8 -m venv venvs/Py38; \
python3.9 -m venv venvs/Py39;
python3.9 -m venv venvs/Py39; \
python3.10 -m venv venvs/Py310;
# Define default command
CMD ["/bin/bash", "-l"]