Guides writing production-ready Dockerfiles, multi-stage builds, image optimization, networking and volumes.
- What it does
- Provides Docker best-practice guidance covering Dockerfile authoring, image size minimization, layer caching, multi-stage builds, security measures such as non-root users and health checks, docker-compose service definitions, and a deployment checklist. It is instruction-only and produces written guidance and example Dockerfile and compose snippets rather than running anything.
- When to use it
- Use when writing or reviewing a Dockerfile, optimizing image size, setting up multi-stage builds, configuring container networking or persistent volumes, or planning a container deployment strategy.
- Requirements
- No tools, packages, or credentials are required; it ships no scripts and only provides instructions and example configuration snippets.