Skip to content

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

License

Notifications You must be signed in to change notification settings

camilo0365/light-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

light-python

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

Docker Hub: https://hub.docker.com/r/camilo0365r/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

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

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> .

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published