Sign inSign up

camilo0365r/light-python

By camilo0365r

•Updated about 9 years ago

Debian 9 based, production-ready and lightweight Python 3 container.

Image
0

10K+

camilo0365r/light-python repository overview

⁠light-python

Debian 9 based, production-ready and lightweight Python3 container.

Docker Hub: https://hub.docker.com/r/camilo0365r/light-python⁠ GitHub: https://github.com/camilo0365/light-python⁠


⁠Features

  • Based on the stretch-slim tag from the official Debian Docker registry⁠.
  • Python 3.6 based on glibc Standard C library, instead of musl. This avoids compatibility issues when pip 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+).

⁠Why another Python image?

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 comparison vs official Python registry

ImageSize in Docker HubDownloaded Size
light-python:3.6.150MB140MB
python:slim80MB206MB
python:jessie274MB690MB
python:stretch350MB909MB

Source: https://hub.docker.com/r/library/python/tags⁠

⁠Usage

$ docker pull camilo0365r/light-python:latest

⁠Build

$ git clone https://github.com/camilo0365/light-python.git
$ cd light-python
$ docker build -t <insert_tag_name> .

Tag summary

Content type

Image

Digest

Size

48.1 MB

Last updated

about 9 years ago

docker pull camilo0365r/light-python