File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ WORKDIR /usr/src/python
12
12
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
13
13
ENV LANG C.UTF-8
14
14
15
- ENV PYTHON_VERSION 3.4.2
15
+ ENV PYTHON_VERSION 3.4.1
16
16
17
17
RUN curl -SL "https://www.python.org/ftp/python/$PYTHON_VERSION/Python-$PYTHON_VERSION.tar.xz" \
18
18
| tar -xJ --strip-components=1
Original file line number Diff line number Diff line change 1
- FROM python:3.4.2
1
+ FROM python:3.4.1
2
2
3
3
RUN mkdir -p /usr/src/app
4
4
WORKDIR /usr/src/app
Original file line number Diff line number Diff line change 10
10
versions=( " ${versions[@]%/ } " )
11
11
12
12
for version in " ${versions[@]} " ; do
13
- fullVersion=" $( curl -sSL ' https://www.python.org/ftp/python/' | grep ' <a href="' " $version ." | sed -r ' s!.*<a href="([^"/]+)/?".*!\1!' | sort -V | tail -1) "
13
+ # <span class="release-number"><a href="/downloads/release/python-278/">Python 2.7.8</a></span>
14
+ # <span class="release-number"><a href="/downloads/release/python-341/">Python 3.4.1</a></span>
15
+ fullVersion=" $( curl -sSL ' https://www.python.org/downloads/' | awk -F ' Python |</a>' ' /<span class="release-number"><a[^>]+>Python ' " $version " ' ./ { print $2 }' | sort -V | tail -1) "
14
16
(
15
17
set -x
16
18
sed -ri ' s/^(ENV PYTHON_VERSION) .*/\1 ' " $fullVersion " ' /' " $version /Dockerfile"
You can’t perform that action at this time.
0 commit comments