Alpine or Debian-slim for a Python service?
IntermediateProductionArchitecture & Design Decisions
Answer
Debian-slim in most cases. Alpine uses musl, so many manylinux wheels (numpy, pandas, cryptography) are unavailable and compile from source, making builds slow and sometimes subtly different at runtime (DNS resolution, locale, performance). Alpine saves ~30 MB but costs build time and debugging. For Go/static binaries Alpine or distroless is fine.
More on Architecture & Design Decisions
How would you design a container build-and-deploy pipeline from commit to production?AdvancedWhen should you use Docker Compose, Swarm, ECS, or Kubernetes?IntermediateHow do you decide how many processes belong in one container?BeginnerHow do you design the config strategy for containerized apps (12-factor)?IntermediateHow would you containerize a legacy app that writes to local disk and holds sessions in memory?AdvancedHow do you structure a reverse proxy in front of containers?Intermediate