You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "official" Python images are far less official than we thought. They are built by the community and while they are somewhat supervised by the "official Docker image program" there is really little control over the build and release process.
We should change the way we build our images to install Python on base debian image from "official" releases rather than use "python" base images for it.
That has also some benefits - for example setuptools are quite old in those images and they tend to have security issues - if we decide when we rebuild the base images we can have better control over what is in the images.
We might also finally plug it in with automated snyk scanning and break releases if snyk does not pass.
Committer
I acknowledge that I am a maintainer/committer of the Apache Airflow project.
Rather than that, we should have BASE_IMAGE (debian:slim-bookworm) and pass PYTHON_MAJOR_MINOR_VERSION simplyh (this is the name we use internally and we automaticallly extract it in the images from installed python version.
Then - one of the first step in our build should be to install python - ideally from official sources - but maybe we find other, faster way (building python is SLOW and requires build tools.
We should first start with CI images and apply the changes toi PROD after we test it for a while on CI.
Activity
potiuk commentedon Jun 23, 2025
Also we should add optional golang installation when we build the image.
potiuk commentedon Jun 23, 2025
Currently we are building our images by passing it image it should be build from
The command is similar to:
The importan thing is this arg:
Rather than that, we should have BASE_IMAGE (
debian:slim-bookworm) and pass PYTHON_MAJOR_MINOR_VERSION simplyh (this is the name we use internally and we automaticallly extract it in the images from installed python version.Then - one of the first step in our build should be to install python - ideally from official sources - but maybe we find other, faster way (building python is SLOW and requires build tools.
We should first start with CI images and apply the changes toi PROD after we test it for a while on CI.
potiuk commentedon Jul 5, 2025
This one still needs PROD image update - reopening.
potiuk commentedon Jul 5, 2025
Let's use the CI image for a week or so and then we apply it to PROD image.