Interview Prep/Docker/Architecture & Design Decisions

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.

All Docker questions Roadmap: Docker & containers

More on Architecture & Design Decisions