diff --git a/3.4/Dockerfile b/3.4/Dockerfile index 417c4f37d..dab31cc42 100644 --- a/3.4/Dockerfile +++ b/3.4/Dockerfile @@ -12,7 +12,7 @@ WORKDIR /usr/src/python # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. ENV LANG C.UTF-8 -ENV PYTHON_VERSION 3.4.2 +ENV PYTHON_VERSION 3.4.1 RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \ | tar -xJ --strip-components=1 diff --git a/3.4/onbuild/Dockerfile b/3.4/onbuild/Dockerfile index e7bee7a4b..184cb325a 100644 --- a/3.4/onbuild/Dockerfile +++ b/3.4/onbuild/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.4.2 +FROM python:3.4.1 RUN mkdir -p /usr/src/app WORKDIR /usr/src/app diff --git a/update.sh b/update.sh index 04405613a..3dfa6d569 100755 --- a/update.sh +++ b/update.sh @@ -10,7 +10,9 @@ fi versions=( "${versions[@]%/}" ) for version in "${versions[@]}"; do - fullVersion="$(curl -sSL 'https://www.python.org/ftp/python/' | grep 'Python 2.7.8 + # Python 3.4.1 + fullVersion="$(curl -sSL 'https://www.python.org/downloads/' | awk -F 'Python |' '/]+>Python '"$version"'./ { print $2 }' | sort -V | tail -1)" ( set -x sed -ri 's/^(ENV PYTHON_VERSION) .*/\1 '"$fullVersion"'/' "$version/Dockerfile"