Skip to content
Projetos

CrafterKolyan/tiny-python-docker-image

Ver no GitHub

Sobre

The most lightweight python docker image possible

Sistemas e infraestrutura

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
0
em 7 dias
0
em 15 dias
0
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

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

Explore projetos relacionados

Carregando…