From a25807526c619a1c767c4a06ae107d83f8d9e1e0 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 18 Dec 2015 16:40:15 +0100 Subject: [PATCH] Add 3.5/alpine variant --- 3.5/alpine/Dockerfile | 63 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 3.5/alpine/Dockerfile diff --git a/3.5/alpine/Dockerfile b/3.5/alpine/Dockerfile new file mode 100644 index 000000000..cdbcf71f7 --- /dev/null +++ b/3.5/alpine/Dockerfile @@ -0,0 +1,63 @@ +FROM alpine:edge + +RUN apk add -u --no-cache gnupg + +# gpg: key F73C700D: public key "Larry Hastings " imported +RUN gpg --keyserver ha.pool.sks-keyservers.net --recv-keys 97FC712E4C024BBEA48A61ED3A5CA953F73C700D + +ENV PYTHON_VERSION 3.5.1 + +# if this is called "PIP_VERSION", pip explodes with "ValueError: invalid truth value ''" +ENV PYTHON_PIP_VERSION 7.1.2 + +RUN set -x -e ;\ + build_deps=' \ + bzip2-dev \ + curl \ + gcc \ + libc-dev \ + libedit-dev \ + linux-headers \ + make \ + make \ + ncurses-dev \ + openssl-dev \ + sqlite-dev \ + zlib-dev \ + pax-utils \ + ' \ + && apk add --no-cache --virtual .build-deps $build_deps \ + && mkdir -p /usr/src/ \ + && curl -SL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz" -o python.tar.xz \ + && curl -SL "https://www.python.org/ftp/python/${PYTHON_VERSION%%[a-z]*}/Python-$PYTHON_VERSION.tar.xz.asc" -o python.tar.xz.asc \ + && gpg --verify python.tar.xz.asc \ + && tar -xJC /usr/src -f python.tar.xz \ + && mv /usr/src/Python-${PYTHON_VERSION} /usr/src/python \ + && rm python.tar.xz* \ + && cd /usr/src/python \ + && ./configure --enable-shared --enable-unicode=ucs4 \ + && make -j$(getconf _NPROCESSORS_ONLN) \ + && make install \ + && pip3 install --no-cache-dir --upgrade --ignore-installed pip==$PYTHON_PIP_VERSION \ + && find /usr/local \ + \( -type d -a -name test -o -name tests \) \ + -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \ + -exec rm -rf '{}' + \ + && rundeps=$(scanelf -R -n --nobanner /usr/local/ \ + | awk '{gsub(/,/,"\n",$2); print $2}' \ + | sort -u | sed 's/^/so:/' | while read dep; do \ + apk info --installed -q $dep && echo $dep; \ + done | sort -u) \ + && apk add --virtual .python-rundeps $rundeps \ + && apk del .build-deps gnupg \ + && rm -rf /usr/src/python + +# make some useful symlinks that are expected to exist +RUN cd /usr/local/bin \ + && ln -s easy_install-3.5 easy_install \ + && ln -s idle3 idle \ + && ln -s pydoc3 pydoc \ + && ln -s python3 python \ + && ln -s python-config3 python-config + +CMD ["python3"] pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy