Skip to content
Projets

CrafterKolyan/tiny-python-docker-image

Voir sur GitHub

À propos

The most lightweight python docker image possible

Systèmes et infrastructure

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

Tiny Python Docker image

The most lightweight Python 3 Docker image possible.

https://github.com/CrafterKolyan/tiny-python-docker-image/actions/workflows/update-repository.yml/badge.svg?branch=main

Possible variants

Dockerfile Description Size Version
Dockerfile.scratch-minimal Minimal Python image with almost no libraries from scratch 2.69 MB 3.14.10
Dockerfile.scratch-full Smallest Python image with default libraries from scratch 10.67 MB 3.14.10
Dockerfile.haizaar-minimal Stripped official Python image (haizaar/python-minimal) 14.69 MB 3.15.2
Dockerfile.python-alpine Python Alpine-based Official 19.68 MB 3.15.2
Dockerfile.alpine Alpine-based 20.21 MB 3.14.10
Dockerfile.python-slim Minimal packages needed to run python 44.3 MB 3.15.2
Dockerfile.ubuntu Ubuntu-based 57 MB 3.14.4
Dockerfile.python Python Debian-based Official with a lot of packages 419.2 MB 3.15.2

Requirements

  • Docker

Usage

Building image

docker build -t python-tiny . -f <Dockerfile name>

For example:

docker build -t python-tiny . -f Dockerfile.scratch-full

Running image

docker run --rm -it python-tiny

Technologies

  • Docker
  • ldd (prints the shared libraries required by each program or shared library specified on the command line): used to create scratch-full and scratch-minimal images.

Related links

Related projects

Explorer des projets similaires

Chargement…