Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

dockerfile-gen

FreeNo executable scriptsNot checked

Generate optimized Dockerfiles for any project

sundial-orgby sundial-org★ 676 GitHub stars

About this skill

Dockerfile Generator

Scan your project, get a production-ready Dockerfile. Multi-stage builds, proper caching, security best practices.

Quick Start

npx ai-dockerfile

What It Does

  • Detects your stack (Node, Python, Go, etc.)
  • Generates multi-stage builds
  • Optimizes layer caching
  • Adds security hardening
  • Includes .dockerignore

Usage Examples

# Generate for current project
npx ai-dockerfile

# Specify base image
npx ai-dockerfile --base node:20-alpine

# Production optimized
npx ai-dockerfile --production

# With compose file
npx ai-dockerfile --compose

Output Includes

  • Dockerfile with comments
  • .dockerignore file
  • docker-compose.yml (optional)
  • Build instructions

Features

  • Multi-stage builds for smaller images
  • Non-root user setup
  • Health checks
  • Proper signal handling
  • Layer caching optimization

Requirements

Node.js 18+. OPENAI_API_KEY required.

License

MIT. Free forever.


Built by LXGIC Studios

Install dockerfile-gen in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the dockerfile-gen skill do?

Generate optimized Dockerfiles for any project

How do I install the dockerfile-gen skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the dockerfile-gen skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare dockerfile-gen with