Skip to content
akin-ozer avatar

Dockerfile Generator

Create multi-stage Dockerfiles and .dockerignore files with security hardening and iterative validation built in.

CCM score
57 of 100
skills.sh installs
804
GitHub stars
345
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers requirements gathering, reference lookup, Dockerfile generation, validation, and a final audit report
  • Includes language templates for Node.js, Python, Go, and Java, plus automatic .dockerignore generation
  • Enforces non-root users, pinned version tags instead of :latest, and no hardcoded secrets
  • Designed for containerizing services and microservices, and for not validating or running existing containers

Install

$ npx -y skills add akin-ozer/cc-devops-skills --skill dockerfile-generator -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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

Details

Repository
github.com/akin-ozer/cc-devops-skills
Category
DevOps & Cloud
First seen
Jun 3, 2026

Questions

What does the dockerfile-generator skill do?

The dockerfile-generator skill creates production-ready Dockerfiles and multi-stage Docker images, with security hardening and layer caching built in. It also generates a .dockerignore file and runs validation with dockerfile-validator, fixing errors in up to three iterations.

Which languages does dockerfile-generator support for Dockerfiles?

The dockerfile-generator skill ships language-specific templates for Node.js, Python, Go and Java. It asks for the language version, entry point, exposed port and package manager before it writes the Dockerfile.

How do I install the dockerfile-generator skill?

Run npx -y skills add akin-ozer/cc-devops-skills --skill dockerfile-generator -y in a project to install dockerfile-generator. After that, the agent can create multi-stage Dockerfiles for your app when you ask it to containerize a service.

Which DevOps skills lead the DevOps & Cloud category next to dockerfile-generator?

Among the top skills in the DevOps & Cloud category are azure-diagnostics, azure-prepare, azure-deploy, azure-validate and azure-storage. The dockerfile-generator skill focuses on writing container build files, which sets it apart from those Azure-focused skills.

More from akin-ozer/cc-devops-skills

All 31

Similar to Dockerfile Generator

More DevOps & Cloud