The smallest Docker image with Python 3.7 (~57MB)

Docker-Hub-frolvlad Docker-Hub-frolvlad Last update: Jan 30, 2024

Docker Stars Docker Pulls

Python 3.11 Docker image

This image is based on Alpine Linux image, which is only a 5MB image, and contains Python 3.x.

This image is only 71MB on disk.

Usage Example

$ docker run --rm frolvlad/alpine-python3 python3 -c 'print("Hello World")'

Once you have run this command you will get printed 'Hello World' from Python! Or use it interactivelly:

$ docker run -it --rm frolvlad/alpine-python3 python3

NOTE: pip/pip3 is also available in this image.

Subscribe to our newsletter