Add python-slim -based docker images
Problem to solve
Current Alpine-based python docker images can not be used with packages that are not pure python packages.
Further details
The Alpine is based on musl
and current manylinux
wheels are not compatible with musl
. A quick research showed that python ecosystem has no support of different linux base systems (libs, etc.).
There are three main types of official python docker images: python:version
, python:version-slim
, python:version-alpine
with sizes respectively about 900Mb, about 200Mb and about 100Mb. The first two images are debian-based so there exist pre-built binary wheels for them.
The first type of images already includes git and many other tools, including compilers.
The second type of images is slimmed-down version of the first image with everything stripped as much as possible. In particular there is no git
installed and we need it in many flows.
The installation takes time comparable or even more time that pulling the biggest type of images
Proposal
Create set of python images with pre-installed git
, tox
and flake8
, based on -slim
version of python images.