Debian 9 based, production-ready and lightweight Python3 container.
Docker Hub: https://hub.docker.com/r/camilo0365r/light-python
- Based on the
stretch-slim
tag from the official Debian Docker registry. - Python 3.6 based on
glibc
Standard C library, instead ofmusl
. This avoids compatibility issues whenpip
installs (and compiles) various libraries from source. - Just the necessary system dependencies to deploy production-ready containers.
- Downloaded Image size approx. 140MB (Official images can be as big as 600MB+).
At the time of writing (October 2017) the official Python Docker registry does not include a barebones and lightweight Python image based on glibc (not musl as in Alpine-based images) and Debian 9 (Stretch).
Image | Size in Docker Hub | Downloaded Size |
---|---|---|
light-python:3.6.1 | 50MB | 140MB |
python:slim | 80MB | 206MB |
python:jessie | 274MB | 690MB |
python:stretch | 350MB | 909MB |
Source: https://hub.docker.com/r/library/python/tags
$ docker pull camilo0365r/light-python:latest
$ git clone https://github.com/camilo0365/light-python.git
$ cd light-python
$ docker build -t <insert_tag_name> .