docker-impl-production
Installation
SKILL.md
docker-impl-production
Quick Reference
Base Image Selection
| Image Type | Size | Shell | Package Mgr | Use Case |
|---|---|---|---|---|
scratch |
0 MB | No | No | Statically compiled binaries (Go, Rust) |
alpine |
~6 MB | Yes (ash) | apk | Minimal Linux with package management |
*-slim |
~30-80 MB | Yes (bash) | apt | Reduced Debian without extras |
distroless |
~20 MB | No | No | Google's minimal runtime images |
Full (e.g., ubuntu) |
~75-200 MB | Yes (bash) | apt | Development, debugging, complex dependencies |
ALWAYS use a full image for the build stage and a minimal image for the runtime stage.
See references/base-images.md for detailed comparison with pros, cons, and language-specific recommendations.