Skip to content

Commit

Permalink
Fixes configurable python version in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwitte committed Aug 6, 2024
1 parent aa239a6 commit 2d5eec9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
COPY global.env /tmp/global.env

# Install Python Version
RUN set -ex \
set -a && . /tmp/global.env && set +a \
wget --no-check-certificate https://www.python.org/ftp/python/${TUSTU_PYTHON_VERSION}/Python-${TUSTU_PYTHON_VERSION}.tgz \
RUN export $(grep -v '^#' /tmp/global.env | xargs) \
&& echo "Using Python version: ${TUSTU_PYTHON_VERSION}" \
&& echo "Downloading Python version: ${TUSTU_PYTHON_VERSION}" \
&& wget --no-check-certificate https://www.python.org/ftp/python/${TUSTU_PYTHON_VERSION}/Python-${TUSTU_PYTHON_VERSION}.tgz \
&& tar -xf Python-${TUSTU_PYTHON_VERSION}.tgz \
&& cd Python-${TUSTU_PYTHON_VERSION} \
&& ./configure --enable-optimizations \
Expand Down

0 comments on commit 2d5eec9

Please sign in to comment.