diff --git a/2.7-onbuild/Dockerfile b/2.7-onbuild/Dockerfile index 95b1340..c374ebc 100644 --- a/2.7-onbuild/Dockerfile +++ b/2.7-onbuild/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ +ENV ALPINE_VERSION=3.11 \ PYTHON_VERSION=2.7.16 # PATHS @@ -25,7 +25,7 @@ ENV PYTHON_PATH=/usr/local/bin/ \ bash \ git \ ca-certificates \ - libssl1.0 \ + libressl-dev \ tzdata \ " \ # PACKAGES needed to built python @@ -101,6 +101,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # set timezone info ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime ;\ # remove build dependencies and any leftover apk cache diff --git a/2.7-slim/Dockerfile b/2.7-slim/Dockerfile index 883ccdf..d31f322 100644 --- a/2.7-slim/Dockerfile +++ b/2.7-slim/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ +ENV ALPINE_VERSION=3.11 \ PYTHON_VERSION=2.7.16 ENV PYTHON_PATH=/usr/local/bin/ \ @@ -99,6 +99,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # remove build dependencies and any leftover apk cache apk del --no-cache --purge .build-deps ;\ rm -rf /var/cache/apk/* ;\ diff --git a/2.7/Dockerfile b/2.7/Dockerfile index 655384f..01384e4 100644 --- a/2.7/Dockerfile +++ b/2.7/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ +ENV ALPINE_VERSION=3.11 \ PYTHON_VERSION=2.7.16 # PATHS @@ -25,7 +25,7 @@ ENV PYTHON_PATH=/usr/local/bin/ \ bash \ git \ ca-certificates \ - libssl1.0 \ + libressl-dev \ tzdata \ " \ # PACKAGES needed to built python @@ -98,6 +98,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # set timezone info ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime ;\ # remove build dependencies and any leftover apk cache diff --git a/3.6-onbuild/Dockerfile b/3.6-onbuild/Dockerfile index 6d264c1..08f8787 100644 --- a/3.6-onbuild/Dockerfile +++ b/3.6-onbuild/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ +ENV ALPINE_VERSION=3.11 \ PYTHON_VERSION=3.6.9 # PATHS @@ -25,7 +25,7 @@ ENV PYTHON_PATH=/usr/local/bin/ \ bash \ git \ ca-certificates \ - libssl1.0 \ + libressl-dev \ tzdata \ " \ # PACKAGES needed to built python @@ -101,6 +101,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # set timezone info ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime ;\ # remove build dependencies and any leftover apk cache diff --git a/3.6-slim/Dockerfile b/3.6-slim/Dockerfile index 72b2847..976838f 100644 --- a/3.6-slim/Dockerfile +++ b/3.6-slim/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ +ENV ALPINE_VERSION=3.11 \ PYTHON_VERSION=3.6.9 # PATHS @@ -100,6 +100,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # remove build dependencies and any leftover apk cache apk del --no-cache --purge .build-deps ;\ rm -rf /var/cache/apk/* ;\ diff --git a/3.6/Dockerfile b/3.6/Dockerfile index 362f426..ecfbfd8 100644 --- a/3.6/Dockerfile +++ b/3.6/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ +ENV ALPINE_VERSION=3.11 \ PYTHON_VERSION=3.6.9 # PATHS @@ -25,7 +25,7 @@ ENV PYTHON_PATH=/usr/local/bin/ \ bash \ git \ ca-certificates \ - libssl1.0 \ + libressl-dev \ tzdata \ " \ # PACKAGES needed to built python @@ -98,6 +98,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # set timezone info ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime ;\ # remove build dependencies and any leftover apk cache diff --git a/3.7-onbuild/Dockerfile b/3.7-onbuild/Dockerfile index 63c9758..1303fd1 100644 --- a/3.7-onbuild/Dockerfile +++ b/3.7-onbuild/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ +ENV ALPINE_VERSION=3.11 \ PYTHON_VERSION=3.7.3 # PATHS @@ -25,7 +25,7 @@ ENV PYTHON_PATH=/usr/local/bin/ \ bash \ git \ ca-certificates \ - libssl1.0 \ + libressl-dev \ tzdata \ " \ # PACKAGES needed to built python @@ -101,6 +101,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # set timezone info ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime ;\ # remove build dependencies and any leftover apk cache diff --git a/3.7-slim/Dockerfile b/3.7-slim/Dockerfile index 7157086..d6b7888 100644 --- a/3.7-slim/Dockerfile +++ b/3.7-slim/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ +ENV ALPINE_VERSION=3.11 \ PYTHON_VERSION=3.7.3 # PATHS @@ -100,6 +100,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # remove build dependencies and any leftover apk cache apk del --no-cache --purge .build-deps ;\ rm -rf /var/cache/apk/* ;\ diff --git a/3.7/Dockerfile b/3.7/Dockerfile index 902cdac..4c5c2ac 100644 --- a/3.7/Dockerfile +++ b/3.7/Dockerfile @@ -1,7 +1,7 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ +ENV ALPINE_VERSION=3.11 \ PYTHON_VERSION=3.7.3 # PATHS @@ -25,7 +25,7 @@ ENV PYTHON_PATH=/usr/local/bin/ \ bash \ git \ ca-certificates \ - libssl1.0 \ + libressl-dev \ libffi-dev \ tzdata \ " \ @@ -101,6 +101,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # set timezone info ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime ;\ # remove build dependencies and any leftover apk cache diff --git a/3.8-onbuild/Dockerfile b/3.8-onbuild/Dockerfile index 0f67794..dc13051 100644 --- a/3.8-onbuild/Dockerfile +++ b/3.8-onbuild/Dockerfile @@ -1,8 +1,8 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ - PYTHON_VERSION=3.8.0 +ENV ALPINE_VERSION=3.11 \ + PYTHON_VERSION=3.8.2 # PATHS ENV PYTHON_PATH=/usr/local/bin/ \ @@ -25,7 +25,7 @@ ENV PYTHON_PATH=/usr/local/bin/ \ bash \ git \ ca-certificates \ - libssl1.0 \ + libressl-dev \ tzdata \ " \ # PACKAGES needed to built python @@ -101,6 +101,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # set timezone info ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime ;\ # remove build dependencies and any leftover apk cache diff --git a/3.8-slim/Dockerfile b/3.8-slim/Dockerfile index cff3d87..06aa447 100644 --- a/3.8-slim/Dockerfile +++ b/3.8-slim/Dockerfile @@ -1,8 +1,8 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ - PYTHON_VERSION=3.8.0 +ENV ALPINE_VERSION=3.11 \ + PYTHON_VERSION=3.8.2 # PATHS ENV PYTHON_PATH=/usr/local/bin/ \ @@ -101,6 +101,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # remove build dependencies and any leftover apk cache apk del --no-cache --purge .build-deps ;\ rm -rf /var/cache/apk/* ;\ diff --git a/3.8/Dockerfile b/3.8/Dockerfile index f8a2e10..1c141c4 100644 --- a/3.8/Dockerfile +++ b/3.8/Dockerfile @@ -1,8 +1,8 @@ -FROM alpine:3.8 +FROM alpine:3.11 # VERSIONS -ENV ALPINE_VERSION=3.8 \ - PYTHON_VERSION=3.8.0 +ENV ALPINE_VERSION=3.11 \ + PYTHON_VERSION=3.8.2 # PATHS ENV PYTHON_PATH=/usr/local/bin/ \ @@ -25,7 +25,7 @@ ENV PYTHON_PATH=/usr/local/bin/ \ bash \ git \ ca-certificates \ - libssl1.0 \ + libressl-dev \ libffi-dev \ tzdata \ " \ @@ -101,6 +101,7 @@ RUN set -ex ;\ find /usr/local/lib/pyenv/versions/$PYTHON_VERSION/ -depth \( -name '*.pyo' -o -name '*.pyc' -o -name 'test' -o -name 'tests' \) -exec rm -rf '{}' + ;\ # symlink the binaries ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/bin/* $PYTHON_PATH ;\ + ln -s /usr/local/lib/pyenv/versions/$PYTHON_VERSION/include/python$PYTHON_MINOR_VERSION /usr/include/ ;\ # set timezone info ln -fs /usr/share/zoneinfo/Etc/UTC /etc/localtime ;\ # remove build dependencies and any leftover apk cache diff --git a/README.md b/README.md index 84cb392..1b362a8 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,7 @@ A small Python Docker image based on [Alpine Linux](http://alpinelinux.org/). - [Debugging](#debugging) - [Additional Arguments](#additional-arguments) - [Ecosystem](#ecosystem) + - [Contribution](#contribution) - [License](#license) @@ -233,7 +234,8 @@ These are some of the images that use `jfloff/alpine-python` as base image. *If [busmuth-hub]: https://hub.docker.com/r/eggdrasyl/bismuth-node/ - +## Contribution +Feel free to contribute with whatever you feel like this image is missing. There is also some changes that happen often like, updating Alpine or Python versions. Do not forget that this repo folders mirror **Python** version and **_not_** Alpine versions. ## License The code in this repository, unless otherwise noted, is MIT licensed. See the `LICENSE` file in this repository.