rc-docker
Installation
SKILL.md
Docker
Production-grade Docker images, multi-stage builds, BuildKit optimization, security hardening, and vulnerability scanning.
Before You Containerize
Answer these questions first:
- Does the app need process isolation? → Docker
- Will it deploy to Kubernetes? → Docker + distroless + non-root
- Is it a monolith with simple deployment? → Docker Compose
- Is it a static site? → Consider nginx:alpine single-stage
- Is the app latency-sensitive (sub-millisecond)? → Container overhead matters at extreme scale; consider bare metal
Quick Start: docker init
For new projects, run docker init in the project root. It auto-detects the language and generates a Dockerfile, .dockerignore, and compose.yaml with best-practice defaults. Always review and harden the output—the generated files are a starting point, not production-ready.