The Python images are built using a bash script python/build-image.sh
, you can check it out for details.
Each python release is downloaded and installed from the deadsnakes ppa.
We'll explain the overall process here:
- Built
FROM dockershelf/debian:<release>
. - Labelled according to label-schema.org and opencontainers specification.
- Install developer tools to handle the package installation.
- Configure deadsnakes repository.
- Install Python.
- Uninstall developer tools and orphan packages.
- Install
pip
. - Shrink image by deleting unnecessary files.
Web luisalejandro.org · GitHub @LuisAlejandro · Twitter @LuisAlejandro