Awesome-openclaw-skills dockerfile-gen
Generate optimized Dockerfiles for any project
install
source · Clone the upstream repo
git clone https://github.com/sundial-org/awesome-openclaw-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/dockerfile-gen" ~/.claude/skills/sundial-org-awesome-openclaw-skills-dockerfile-gen && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/sundial-org/awesome-openclaw-skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/dockerfile-gen" ~/.openclaw/skills/sundial-org-awesome-openclaw-skills-dockerfile-gen && rm -rf "$T"
manifest:
skills/dockerfile-gen/SKILL.mdsource content
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