dallay/opencode-docker/docker-expert
Claude Code and agent skill by dallay/opencode-docker
- community
Checking that the SKILL.md file is still in the repository.
Advanced Docker containerization expert for multi-stage builds, image optimization, security hardening, and Compose orchestration. Trigger: When working with `Dockerfile`, `docker-compose.yml`, containerization, multi-stage builds, or optimizing Docker images.
Install
npx vskill@latest install dallay/opencode-docker/docker-expertSKILL.md
When to Use
- Creating or optimizing a
Dockerfilefor any project. - Setting up or reviewing
docker-compose.ymlfor local development or production. - Troubleshooting container security, large image sizes, or slow build times.
- Implementing multi-stage builds to separate dependencies from runtime.
Critical Patterns
- Security First (Non-Root): NEVER run containers as
root. Always create and switch to a
non-root user via the USER instruction.
- Secrets over Env Vars: Use Docker Secrets (
secrets:) for sensitive data in
docker-compose.yml rather than plain environment variables.
- Multi-Stage Builds: Always separate the builder (compilation, dependency fetching) from the
final runtime image. Do not ship build tools to production.
- Minimal Attack Surface: Prefer
alpine,slim, ordistrolessbase images. - Supply Chain Integrity: Pin base image versions down to the digest (e.g.,
alpine:3.21@sha256:xyz...).
- Layer Caching: Order instructions by frequency of change. Copy and install dependencies
before copying the rest of the source code.
- One Layer Operations: Chain
apt-get updatewithapt-get installusing&&and clear the
cache (rm -rf /var/lib/apt/lists/*) in the exact same RUN command.
Code Examples
Optimized Multi-Stage Dockerfile
Production-Ready Compose Pattern
Commands
Resources
- Templates: See assets/.dockerignore for a production-ready
.dockerignore template to optimize build context.
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 repositoryCheckingconfig/skills/docker-expert/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/dallay/opencode-docker/docker-expert)