Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

CrafterKolyan/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 6.587 MB 3.14.5
Dockerfile.scratch-full Smallest Python image with default libraries from scratch 23.38 MB 3.14.5
Dockerfile.haizaar-minimal Stripped official Python image (haizaar/python-minimal) 37.6 MB 3.14.6
Dockerfile.alpine Alpine-based 49.65 MB 3.14.5
Dockerfile.python-alpine Python Alpine-based Official 53.99 MB 3.14.6
Dockerfile.python-slim Minimal packages needed to run python 119.3 MB 3.14.6
Dockerfile.ubuntu Ubuntu-based 141.6 MB 3.14.4
Dockerfile.python Python Debian-based Official with a lot of packages 1117 MB 3.14.6

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

Topics

Resources

License

MIT, Apache-2.0 licenses found

Licenses found

MIT
LICENSE
Apache-2.0
LICENSE-haizaar

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /