diff --git a/docker-compose.yml b/docker-compose.yml index 7183242..e01f9aa 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -113,6 +113,7 @@ services: - INSTALL_MC=${WORKSPACE_INSTALL_MC} - INSTALL_SYMFONY=${WORKSPACE_INSTALL_SYMFONY} - INSTALL_PYTHON=${WORKSPACE_INSTALL_PYTHON} + - INSTALL_PYTHON3=${WORKSPACE_INSTALL_PYTHON3} - INSTALL_IMAGE_OPTIMIZERS=${WORKSPACE_INSTALL_IMAGE_OPTIMIZERS} - INSTALL_IMAGEMAGICK=${WORKSPACE_INSTALL_IMAGEMAGICK} - INSTALL_TERRAFORM=${WORKSPACE_INSTALL_TERRAFORM} diff --git a/env-example b/env-example index ef13d64..25f590e 100644 --- a/env-example +++ b/env-example @@ -139,6 +139,7 @@ WORKSPACE_INSTALL_LINUXBREW=false WORKSPACE_INSTALL_MC=false WORKSPACE_INSTALL_SYMFONY=false WORKSPACE_INSTALL_PYTHON=false +WORKSPACE_INSTALL_PYTHON3=false WORKSPACE_INSTALL_POWERLINE=false WORKSPACE_INSTALL_SUPERVISOR=false WORKSPACE_INSTALL_IMAGE_OPTIMIZERS=false diff --git a/workspace/Dockerfile b/workspace/Dockerfile index f2694c4..5f4c38a 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -1068,7 +1068,7 @@ RUN if [ ${INSTALL_SYMFONY} = true ]; then \ ;fi ########################################################################### -# PYTHON: +# PYTHON2: ########################################################################### ARG INSTALL_PYTHON=false @@ -1079,6 +1079,18 @@ RUN if [ ${INSTALL_PYTHON} = true ]; then \ && python -m pip install --upgrade virtualenv \ ;fi +########################################################################### +# PYTHON3: +########################################################################### + +ARG INSTALL_PYTHON3=false + +RUN if [ ${INSTALL_PYTHON3} = true ]; then \ + apt-get -y install python3 python3-pip python3-dev build-essential \ + && python3 -m pip install --upgrade --force-reinstall pip \ + && python3 -m pip install --upgrade virtualenv \ +;fi + ########################################################################### # POWERLINE: ###########################################################################