8000 GitHub - tektite-io/tiny-python-docker-image: The most lightweight python docker image possible
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tektite-io/tiny-python-docker-image

 
 

Repository files navigation

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 7.542 MB 3.12.11
Dockerfile.scratch-full Smallest Python image with default libraries from scratch 23.4 MB 3.12.11
Dockerfile.haizaar-minimal Stripped official Python image (haizaar/python-minimal) 35.9 MB 3.13.5
Dockerfile.python-alpine Python Alpine-based Official 45.27 MB 3.13.5
Dockerfile.alpine Alpine-based 49.16 MB 3.12.11
Dockerfile.ubuntu Ubuntu-based 116.7 MB 3.12.3
Dockerfile.python-slim Minimal packages needed to run python 120.7 MB 3.13.5
Dockerfile.python Python Debian-based Official with a lot of packages 1018 MB 3.13.5

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

About

The most lightweight python docker image possible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%
0