At the moment, we are using a Debian base image for the docker container.
For this reason, we only can install python versions via apt, which are already in the Debian repositories.
We COULD compile newer python versions manually into our Debian based image, but this would lead into a bigger image size and a more complicated Dockerfile which would be harder to maintain.
We weren't able to switch to the Python base image before, since Docker build was't able to build it for ARM platforms.
This is why I suggest the following changes:
Using docker buildx -> Improved compatibilty of build process
Changing the base image to python:3.8 -> easier upgrade process with less overhead
I'm still building the 3 images in 3 jobs -> faster build process.
We could use "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7", but I wouldn't recommend it for obvious performance reasons.
The build process was already tested within a test repository, everything should work first try (please don't quote me on that later :D).
Docker buildx is a quemu based experimental feature. But in my experience, it's working perfectly fine for over a year at this point.
At the moment, we are using a Debian base image for the docker container. For this reason, we only can install python versions via apt, which are already in the Debian repositories. We COULD compile newer python versions manually into our Debian based image, but this would lead into a bigger image size and a more complicated Dockerfile which would be harder to maintain. We weren't able to switch to the Python base image before, since Docker build was't able to build it for ARM platforms.
This is why I suggest the following changes:
I'm still building the 3 images in 3 jobs -> faster build process. We could use "docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7", but I wouldn't recommend it for obvious performance reasons.
The build process was already tested within a test repository, everything should work first try (please don't quote me on that later :D).
Docker buildx is a quemu based experimental feature. But in my experience, it's working perfectly fine for over a year at this point.