Docker
Production Dockerfile and Compose practice — multi-stage builds, layer caching, non-root runtime, image slimming, build secrets, health checks, reproducible tags and image scanning.
What it does
Production Dockerfile and Compose practice — multi-stage builds, layer caching, non-root runtime, image slimming, build secrets, health checks, reproducible tags and image scanning.
- Category
- devopscontainersbuild
- Platforms
- backendwebgeneric
- Frameworks and tools
- dockerdocker-composebuildkit
- Capabilities
- code-generationreviewoptimization
Example tasks
- “Rewrite our single-stage Node Dockerfile into a small, cache-friendly, non-root production image.”
- “Review this Dockerfile and docker-compose.yml for security and build-time problems.”
- “Add a health check and a dev/prod Compose split to a Python API with Postgres.”
Works with
Permissions summary
Files
Reads files only
Shell
No shell commands
Network
No network
Permissions are declared in the component manifest and compiled into each client's tool list. Components are built for least privilege.
Supported environments
| Client | Support | Installed as |
|---|---|---|
| Claude Code | Native | .claude/skills/<id>/SKILL.md |
| OpenAI Codex | Adapter | .codex/skills/<id>/SKILL.md |
| Cursor | Adapter | .cursor/rules/<id>.mdc |
| VS Code (Copilot) | Adapter | .github/instructions/<id>.instructions.md |
| Generic markdown | Adapter | docs/forgekit/skills/<id>.md |
Claude Code is the native reference. Other clients use adapters, so behaviour is close but not identical. See the compatibility matrix.
Included in packs
What is inside
This is a premium component, so its prompt is delivered only through signed downloads to licensed accounts. Here is the outline of its sections (125 lines in total).
- 01Docker
- 021. Before writing anything
- 032. Dockerfile rules
- 043. Reference: Node production image
- 054. Build secrets and private dependencies
- 065. .dockerignore baseline
- 076. Base image decision table
- 087. Compose rules
- 098. Caching and speed
- 109. Scan and verify
- 1110. Common mistakes
- 1211. Output format when reviewing
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — Docker
1.0.0
- Initial release.