glincker/claude-code-marketplace/docker-wizard
- community
Checking that the SKILL.md file is still in the repository.
Generate optimized Dockerfiles and docker-compose.yml with best practices and multi-stage builds
Install
npx vskill@latest install glincker/claude-code-marketplace/docker-wizardSKILL.md
The same SKILL.md was published earlier as david-li0406/meta-skill-evloving/docker-wizard.
Docker Wizard
Generate production-ready Dockerfiles and docker-compose.yml files by analyzing your project. Follows best practices, optimizes image size, and includes security hardening.
What This Skill Does
- Auto-detects project type and dependencies
- Generates multi-stage builds for smaller images
- Applies security best practices (non-root user, minimal base images)
- Creates docker-compose.yml for multi-service setups
- Includes development and production configurations
- Optimizes layer caching for faster builds
Instructions
Phase 1: Project Analysis
- Detect project type:
```bash Use Glob to find:
- package.json → Node.js
- requirements.txt/pyproject.toml → Python
- go.mod → Go
- Cargo.toml → Rust
- pom.xml/build.gradle → Java
```
- Analyze dependencies:
```bash Use Read to examine:
- Runtime dependencies
- Build dependencies
- Environment requirements
- Port requirements
```
Phase 2: Dockerfile Generation
Generate optimized multi-stage Dockerfile:
Best practices applied:
- Multi-stage builds (reduce image size by 70%)
- Alpine base images (minimal attack surface)
- Non-root user (security)
- Optimized layer caching
- .dockerignore generation
Phase 3: Docker Compose Generation
Create docker-compose.yml for multi-service setups:
Phase 4: Additional Files
- .dockerignore:
`` node_modules npm-debug.log .git .env *.md .vscode .idea coverage .DS_Store ``
- docker-compose.dev.yml (development overrides):
```yaml version: '3.9'
services: app: build: target: builder volumes:
- .:/app
- /app/node_modules
environment:
- NODE_ENV=development
command: npm run dev ```
Language-Specific Optimizations
Node.js
Python
Go
Security Best Practices
- Non-root user: Always run as non-root
- Minimal base: Use Alpine or distroless
- No secrets: Never COPY .env files
- Health checks: Include HEALTHCHECK directive
- Read-only rootfs: Add security-opt in compose
Tool Requirements
- Read: Examine project files
- Write: Create Dockerfiles and compose files
- Glob: Find project structure
- Grep: Search for patterns
- Bash: Test docker build (optional)
Examples
Example 1: Full Stack App
User: "Generate Docker setup for my MERN app"
Generated:
- Multi-stage Dockerfile for React frontend
- Dockerfile for Node.js backend
- docker-compose.yml with MongoDB, Redis
- Nginx reverse proxy config
- .dockerignore for both services
Example 2: Microservices
User: "Create Docker Compose for microservices"
Generated:
- Service-specific Dockerfiles
- Shared docker-compose with networking
- Environment-specific overrides
- Health checks and dependencies
Best Practices
- Use specific versions, not
latesttags - Implement health checks for all services
- Use bind mounts in development, volumes in production
- Set resource limits (memory, CPU)
- Enable logging drivers
Related Skills
- k8s-generator - Generate Kubernetes manifests
- cicd-pipeline-builder - Build CI/CD pipelines
Changelog
Version 1.0.0
- Initial release
- Multi-stage build support
- Docker Compose generation
- Security hardening
- Multiple language support
Author
GLINCKER Team
- Repository: claude-code-marketplace
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devops/docker-wizard/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/glincker/claude-code-marketplace/docker-wizard)