dockerfile-gen
FreeNo executable scriptsNot checkedGenerate optimized Dockerfiles for any project
by sundial-org★ 676 GitHub starsAbout 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
- GitHub: github.com/lxgicstudios/ai-dockerfile
- Twitter: @lxgicstudios
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
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
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic