Back to skills
SKILL.md
Dockerfile Gen
ASecurityGenerate optimized Dockerfiles for any project
- 651 stars
- 0 votes
- 3 copies
- 12 views
- Added February 10, 2026
Works with
Security analysis
100/100npx -y skills add sundial-org/awesome-openclaw-skills --skill dockerfile-gen --agent claude-codeAre you the author of Dockerfile Gen?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sundial-org-dockerfile-gen)---
name: dockerfile-gen
description: Generate optimized Dockerfiles for any project
---
# Dockerfile Generator
Scan your project, get a production-ready Dockerfile. Multi-stage builds, proper caching, security best practices.
## Quick Start
```bash
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
```bash
# 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](https://github.com/lxgicstudios/ai-dockerfile)
- Twitter: [@lxgicstudios](https://x.com/lxgicstudios)
Attribution
Comments
Loading comments…