Skip to content
项目

CrafterKolyan/tiny-python-docker-image

在 GitHub 查看

关于

The most lightweight python docker image possible

系统与基础设施

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

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

探索相关项目

加载中…