Skip to content

Latest commit

 

History

History
42 lines (30 loc) · 1.58 KB

README.md

File metadata and controls

42 lines (30 loc) · 1.58 KB

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