/setup-docker
Containerize the project with a multi-stage Dockerfile, .dockerignore and an optional Compose file for local development, using non-root users, pinned base images, layer caching and healthchecks. Detects the stack from the repo rather than assuming one.
What it does
Containerize the project with a multi-stage Dockerfile, .dockerignore and an optional Compose file for local development, using non-root users, pinned base images, layer caching and healthchecks. Detects the stack from the repo rather than assuming one.
- Category
- devopsdockercontainers
- Platforms
- webbackendgeneric
- Frameworks and tools
- dockerdocker-compose
- Capabilities
- code-generationcontainerizationsecurity-hardening
Example tasks
- /setup-docker production image for this Next.js app plus a compose file with Postgres
- /setup-docker shrink the existing Dockerfile and stop it running as root
- /setup-docker containerize the Go API with a distroless runtime image
Works with
Related skills
Requires (installed automatically)
Recommended alongside
Permissions summary
Files
Reads and edits files
Shell
Runs a limited set of 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/commands/<id>.md |
| OpenAI Codex | Adapter | .codex/prompts/<id>.md |
| Cursor | Native | .cursor/commands/<id>.md |
| VS Code (Copilot) | Native | .github/prompts/<id>.prompt.md |
| Generic markdown | Adapter | docs/forgekit/commands/<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 (14 lines in total).
Version and changelog
Latest version 1.0.0. Requires DevBuildKit CLI 1.0.0 or newer.
Changelog — /setup-docker
1.0.0
- Initial release.