akin-ozer avatar

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-code

Installs 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-validator for 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
1akin-ozer avatarhelm-validatorakin-ozer/cc-devops-skillsValidate, lint, audit, check Helm charts — Chart.yaml, templates, values.yaml, CRDs, schemas.712skills.sh installs
2akin-ozer avatarjenkinsfile-validatorakin-ozer/cc-devops-skillsValidate, lint, audit, or check Jenkinsfiles and shared libraries.706skills.sh installs
3akin-ozer avatarazure-pipelines-generatorakin-ozer/cc-devops-skillsGenerate/create/scaffold azure-pipelines.yml, stages, jobs, steps, or reusable templates.692skills.sh installs
4microsoft avatarmicrosoft-foundrymicrosoft/azure-skillsDeploy, evaluate, fine-tune, and manage Foundry agents end-to-end with azd: hosted agent scaffold/run/deploy, prompt agent create, batch eval, continuous eval, 671.4Kskills.sh installs
5microsoft avatarazure-preparemicrosoft/azure-skillsPrepare azd-based Azure projects for deployment: generates azure.yaml, infrastructure (Bicep/Terraform), and Dockerfiles for the Azure Developer CLI (azd) workf661.6Kskills.sh installs
6microsoft avatarazure-validatemicrosoft/azure-skillsPre-deployment validation for Azure readiness. Run deep checks on configuration, infrastructure (Bicep or Terraform), RBAC role assignments, managed identity pe659.9Kskills.sh installs