Skip to content
المشاريع

CrafterKolyan/tiny-python-docker-image

عرض على GitHub

حول

The most lightweight python docker image possible

الأنظمة والبنية التحتية

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

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

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…