From 01f965956cec26f1d141ab2ba86bebc9de371560 Mon Sep 17 00:00:00 2001 From: Alexander Mazuruk Date: Thu, 9 Dec 2021 15:35:27 +0100 Subject: [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 Change-Id: I292884bb751881ace635afa57b69874fd6d3c1e4 --- Dockerfile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile index a9e37c7..cf745fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ''" -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; \ \ -- cgit 1.2.3-korg