File tree 2 files changed +18
-4
lines changed
2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -23,8 +23,15 @@ RUN yum install -y \
23
23
libffi-devel \
24
24
sqlite-devel
25
25
26
- RUN RUNTIME_LATEST_VERSION=${RUNTIME_VERSION}.$(curl -s https://www.python.org/ftp/python/ | grep -oE "href=\"$(echo ${RUNTIME_VERSION} | sed "s/\\./\\\./g")\.[0-9]+" | cut -d. -f3 | sort -n | tail -n1) \
27
- && wget -c https://www.python.org/ftp/python/${RUNTIME_LATEST_VERSION}/Python-${RUNTIME_LATEST_VERSION}.tgz -O - | tar -xz \
26
+ RUN RUNTIME_LATEST_VERSION=${RUNTIME_VERSION}.$(curl -s https://www.python.org/ftp/python/ | \
27
+ grep -oE "href=\"$(echo ${RUNTIME_VERSION} | sed "s/\\./\\\./g")\.[0-9]+" | \
28
+ cut -d. -f3 | \
29
+ sort -rn | \
30
+ while read -r patch; do \
31
+ $(wget -c https://www.python.org/ftp/python/${RUNTIME_VERSION}.$patch/Python-${RUNTIME_VERSION}.$patch.tgz -O Python-${RUNTIME_VERSION}.$patch.tgz); \
32
+ [ $? -eq 0 ] && echo $patch && break; \
33
+ done) \
34
+ && tar -xzf Python-${RUNTIME_LATEST_VERSION}.tgz \
28
35
&& cd Python-${RUNTIME_LATEST_VERSION} \
29
36
&& ./configure --prefix=/usr/local --enable-shared \
30
37
&& make \
Original file line number Diff line number Diff line change @@ -23,8 +23,15 @@ RUN yum install -y \
23
23
libffi-devel \
24
24
sqlite-devel
25
25
26
- RUN RUNTIME_LATEST_VERSION=${RUNTIME_VERSION}.$(curl -s https://www.python.org/ftp/python/ | grep -oE "href=\"$(echo ${RUNTIME_VERSION} | sed "s/\\./\\\./g")\.[0-9]+" | cut -d. -f3 | sort -n | tail -n1) \
27
- && wget -c https://www.python.org/ftp/python/${RUNTIME_LATEST_VERSION}/Python-${RUNTIME_LATEST_VERSION}.tgz -O - | tar -xz \
26
+ RUN RUNTIME_LATEST_VERSION=${RUNTIME_VERSION}.$(curl -s https://www.python.org/ftp/python/ | \
27
+ grep -oE "href=\"$(echo ${RUNTIME_VERSION} | sed "s/\\./\\\./g")\.[0-9]+" | \
28
+ cut -d. -f3 | \
29
+ sort -rn | \
30
+ while read -r patch; do \
31
+ $(wget -c https://www.python.org/ftp/python/${RUNTIME_VERSION}.$patch/Python-${RUNTIME_VERSION}.$patch.tgz -O Python-${RUNTIME_VERSION}.$patch.tgz); \
32
+ [ $? -eq 0 ] && echo $patch && break; \
33
+ done) \
34
+ && tar -xzf Python-${RUNTIME_LATEST_VERSION}.tgz \
28
35
&& cd Python-${RUNTIME_LATEST_VERSION} \
29
36
&& ./configure --prefix=/usr/local --enable-shared \
30
37
&& make \
You can’t perform that action at this time.
0 commit comments