| 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
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
npx ai-dockerfile
npx ai-dockerfile --base node:20-alpine
npx ai-dockerfile --production
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