diff options
author | Alexander Mazuruk <a.mazuruk@samsung.com> | 2021-12-09 15:35:27 +0100 |
---|---|---|
committer | Alexander Mazuruk <a.mazuruk@samsung.com> | 2021-12-09 15:58:12 +0100 |
commit | 01f965956cec26f1d141ab2ba86bebc9de371560 (patch) | |
tree | f825396cb2fd62d1e75953ab0b75b5495d6a6756 | |
parent | d94c6fe19826eadf30f8118637829725317b728a (diff) |
[JAKARTA] Update python baseline image
Bump python 3.10.0 -> 3.10.1
Bump pip 21.1.2 -> 21.2.4
Pin setuptools version, following upstream change.
Add --with-lto flag:
https://github.com/docker-library/python/issues/501
and upstream discussion:
https://bugs.python.org/issue38980
Issue-ID: INT-2015
Signed-off-by: Alexander Mazuruk <a.mazuruk@samsung.com>
Change-Id: I292884bb751881ace635afa57b69874fd6d3c1e4
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -46,7 +46,7 @@ RUN set -eux; \ # other runtime dependencies for Python are installed later ENV GPG_KEY A035C8C19219BA821ECEA86B64E628F8D684696D -ENV PYTHON_VERSION 3.10.0 +ENV PYTHON_VERSION 3.10.1 RUN set -ex \ && apk add --no-cache --virtual .fetch-deps \ @@ -98,6 +98,7 @@ RUN set -ex \ --enable-optimizations \ --enable-option-checking=fatal \ --enable-shared \ + --with-lto \ --with-system-expat \ --with-system-ffi \ --without-ensurepip \ @@ -132,10 +133,12 @@ RUN cd /usr/local/bin \ && ln -s python3-config python-config # if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value '<VERSION>'" -ENV PYTHON_PIP_VERSION 21.1.2 +ENV PYTHON_PIP_VERSION 21.2.4 +# https://github.com/docker-library/python/issues/365 +ENV PYTHON_SETUPTOOLS_VERSION 57.5.0 # https://github.com/pypa/get-pip -ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/936e08ce004d0b2fae8952c50f7ccce1bc578ce5/public/get-pip.py -ENV PYTHON_GET_PIP_SHA256 8890955d56a8262348470a76dc432825f61a84a54e2985a86cd520f656a6e220 +ENV PYTHON_GET_PIP_URL https://github.com/pypa/get-pip/raw/3cb8888cc2869620f57d5d2da64da38f516078c7/public/get-pip.py +ENV PYTHON_GET_PIP_SHA256 c518250e91a70d7b20cceb15272209a4ded2a0c263ae5776f129e0d9b5674309 RUN set -ex; \ \ @@ -146,6 +149,7 @@ RUN set -ex; \ --disable-pip-version-check \ --no-cache-dir \ "pip==$PYTHON_PIP_VERSION" \ + "setuptools==$PYTHON_SETUPTOOLS_VERSION" \ ; \ pip --version; \ \ |