3 ms·
> Also most images like python have alpine variants now which is really nice. You probably don’t want to use Alpine for Python containers. Many packages don’t
by KMnO4 4y ago
> Also most images like python have alpine variants now which is really nice.
You probably don’t want to use Alpine for Python containers. Many packages don’t provide wheels for Alpine (the Python version of prebuilt binaries), so you’ll have to build them from source, countering the space savings.
You’re often better just using something like Debian-slim or something.
- throwawaaarrgh 4y agoI would use whatever Alpine-y containers the official Python docker hub has, and switch to a Debian-based one if there are bugs. Building extra wheels isn't necessarily an issue, you can squash layers with a multistage build from scratch.