youhai020616/pi-extensions/docker-deploy
Claude Code and agent skill by youhai020616/pi-extensions
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when containerizing applications, writing Dockerfiles, creating docker-compose configs, or setting up CI/CD deployment pipelines
Install
npx vskill@latest install youhai020616/pi-extensions/docker-deploySKILL.md
Docker & Deployment
Overview
Containers should be small, secure, and reproducible.
Core principle: Immutable builds, minimal images, environment parity.
Dockerfile Best Practices
Multi-Stage Build (Node.js Example)
Rules
| ✅ Do | ❌ Don't | |
|---|---|---|
Use alpine or slim base images | Use full ubuntu / node:latest | |
COPY package*.json first (layer cache) | COPY . . before npm install | |
npm ci (deterministic) | npm install (non-deterministic) | |
USER node (non-root) | Run as root | |
| Multi-stage builds | Single stage with dev deps | |
.dockerignore file | Copy node_modules / .git | |
Pin versions (node:20.11-alpine) | Use latest tag | |
HEALTHCHECK instruction | No health checks |
.dockerignore
Docker Compose
Production Template
Key Rules
- Always use
depends_onwithcondition: service_healthy - Use
restart: unless-stoppedfor production - Set resource
limits - Use named
volumesfor persistent data - Use
.envfile for secrets (never hardcode) - Use
${VAR:-default}syntax for defaults
CI/CD Pipeline (GitHub Actions)
Deployment Checklist
- [ ] Dockerfile uses multi-stage build
- [ ] Image runs as non-root user
- [ ] Health check configured
- [ ]
.dockerignoreexists and is complete - [ ] No secrets baked into image
- [ ] Environment variables for all config
- [ ] Resource limits set
- [ ] Logging to stdout/stderr (not files)
- [ ] Graceful shutdown handles SIGTERM
- [ ] Image scanned for vulnerabilities (
docker scout,trivy)
Common Image Size Reduction
| Technique | Typical Savings | |
|---|---|---|
alpine base | 500MB → 50MB | |
| Multi-stage build | Remove dev deps, build tools | |
.dockerignore | Exclude .git, node_modules, docs | |
npm ci --only=production | No dev dependencies | |
| Pin + minimal layers | Better cache, smaller diff |
Security
- Security scanPassed, 98 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/docker-deploy/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/youhai020616/pi-extensions/docker-deploy)