From 12d3b41d6e2ecbd5a37637f238b05513119b262c Mon Sep 17 00:00:00 2001 From: codecakes Date: Mon, 5 Oct 2020 17:25:05 +0530 Subject: [PATCH 1/2] Update Dockerfile add forked alpine py3 with symlink to /usr/bin/python --- 3.8/alpine3.12/Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/3.8/alpine3.12/Dockerfile b/3.8/alpine3.12/Dockerfile index 4771c5da6..ba8fbef00 100644 --- a/3.8/alpine3.12/Dockerfile +++ b/3.8/alpine3.12/Dockerfile @@ -7,7 +7,7 @@ FROM alpine:3.12 # ensure local python is preferred over distribution python -ENV PATH /usr/local/bin:$PATH +ENV PATH /usr/local/bin:/usr/bin:$PATH # http://bugs.python.org/issue19846 # > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK. @@ -134,4 +134,12 @@ RUN set -ex; \ \) -exec rm -rf '{}' +; \ rm -f get-pip.py -CMD ["python3"] +# symlink to /usr/bin/python +ENV PATH /usr/bin:$PATH +RUN ln -s /usr/local/bin/python3 /usr/bin/python; +RUN alias python=python3; +RUN ls /usr/bin -al; +RUN ls -al /usr/local/bin; +RUN /usr/bin/python --version; + +ENTRYPOINT ["/usr/bin/python"] From 5e20ab6a81a24ee92aee4606ff1e0e26587d7f36 Mon Sep 17 00:00:00 2001 From: codecakes Date: Tue, 6 Oct 2020 00:07:08 +0530 Subject: [PATCH 2/2] Update Dockerfile installs libstdc --- 3.8/alpine3.12/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/3.8/alpine3.12/Dockerfile b/3.8/alpine3.12/Dockerfile index ba8fbef00..b212a2be2 100644 --- a/3.8/alpine3.12/Dockerfile +++ b/3.8/alpine3.12/Dockerfile @@ -17,6 +17,9 @@ ENV LANG C.UTF-8 # other runtime dependencies for Python are installed later RUN apk add --no-cache ca-certificates +# install libstdc++ +RUN apk add --no-cache libstdc++ + ENV GPG_KEY E3FF2839C048B25C084DEBE9B26995E310250568 ENV PYTHON_VERSION 3.8.6 @@ -138,8 +141,6 @@ RUN set -ex; \ ENV PATH /usr/bin:$PATH RUN ln -s /usr/local/bin/python3 /usr/bin/python; RUN alias python=python3; -RUN ls /usr/bin -al; -RUN ls -al /usr/local/bin; RUN /usr/bin/python --version; ENTRYPOINT ["/usr/bin/python"]