diff --git a/3.8/alpine3.12/Dockerfile b/3.8/alpine3.12/Dockerfile index 4771c5da6..b212a2be2 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. @@ -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 @@ -134,4 +137,10 @@ 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 /usr/bin/python --version; + +ENTRYPOINT ["/usr/bin/python"]