
Dockerfile Generator
Generates production-ready Dockerfiles with multi-stage builds, security hardening, and layer optimization baked in. It walks through requirements gathering, consults local references for best practices, creates the Dockerfile and dockerignore, then validates with dockerfile-validator and iteratively fixes errors. Works across Node.js, Python, Go, and Java with language-specific templates. The deterministic workflow is refreshingly explicit: six stages with defined stop conditions and a three-iteration cap on fixes. You get non-root users, minimal base images, and proper cache layering without hunting through Docker docs. Good for new projects or cleaning up existing Dockerfiles that have grown organically messy.
- skills.sh installs
- 741
- GitHub stars
- 337
- last updated
- Aug 21, 2026
Install
$ npx -y skills add akin-ozer/cc-devops-skills --skill dockerfile-generator --agent claude-codeInstalls into .claude/skills of the current project.
Files
Dockerfile Generator
Overview
This skill provides a comprehensive workflow for generating production-ready Dockerfiles with security, optimization, and best practices built-in. Generates multi-stage builds, security-hardened configurations, and optimized layer structures with automatic validation and iterative error fixing.
Key Features:
- Multi-stage builds for optimal image size (50-85% reduction)
- Security hardening (non-root users, minimal base images, no secrets)
- Layer caching optimization for faster builds
- Language-specific templates (Node.js, Python, Go, Java)
- Automatic .dockerignore generation
- Integration with
dockerfile-validatorfor validation - Iterative validation and error fixing (minimum 1 iteration if errors found)
- Local references plus docs lookup fallback chain for framework-specific patterns
When to Use This Skill
Sponsors
Details
- Repository
- github.com/akin-ozer/cc-devops-skills
- Categories
- DevOps & CI/CD, Automation & Workflows
- First seen
- Jun 3, 2026
More from akin-ozer/cc-devops-skills
All 31- Bash Script Validator734
- Gitlab Ci Validator725
- K8s Yaml Validator715
- Helm Validator712
- Bash Script Generator710
- Jenkinsfile Validator706
- Terragrunt Validator703
- K8s Yaml Generator694
- Azure Pipelines Generator692
- Github Actions Validator686
- Gitlab Ci Generator686
- Github Actions Generator684
- Terraform Validator681
- Azure Pipelines Validator680
- Terraform Generator680
- Helm Generator674
- Makefile Validator671
- Makefile Generator659
- Promql Generator656
- Promql Validator646
- Fluentbit Generator640
- Logql Generator640
- Fluentbit Validator637
- Loki Config Generator622