docker-expert

Identify Docker build inefficiencies and security gaps in projects.

Updated Mar 18, 2026
One-click install
npx skills add https://github.com/bpteam/coder --skill docker-expert-bpteam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-expert
Source: https://github.com/bpteam/coder/tree/main/.opencode/skills/docker-expert
Command: npx skills add https://github.com/bpteam/coder --skill docker-expert-bpteam

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Docker containerization is often error-prone, inefficient, and hard to scale securely; this Skill provides a structured approach to optimize builds, harden runtimes, and standardize deployment workflows.

Core Features & Use Cases

  • Optimized Dockerfile & multi-stage builds: reduce image size and build time by separating dependencies from application code.
  • Security hardening & non-root execution: enforce a non-privileged runtime, minimal base images, and secrets best practices.
  • Docker Compose orchestration & production patterns: design robust service networks, health checks, and resource limits for reliable deployments.
  • Image size optimization & performance: leverage distroless/base images, build-time caching, and artifact pruning.
  • Development workflow integration & validation: support development workflows with reproducible builds and automated checks.

Quick Start

Analyze your project's container setup now to generate a production-ready optimization plan.

Frequently Asked Questions about docker-expert

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize Docker image size using multi-stage builds?

Optimize Docker image size by using multi-stage builds to separate dependencies from application code, leveraging minimal base images and artifact pruning to reduce build time and overall footprint.

What is the best way to harden Docker container security for production?

Harden Docker container security by enforcing non-root execution, utilizing minimal or distroless base images, and applying secrets best practices to prevent privileged runtime vulnerabilities.

How do I configure Docker Compose for production staging environments?

Configure Docker Compose for production by designing robust service networks, implementing health checks, and setting resource limits to ensure reliable deployments across development and staging scenarios.

Why does my Dockerfile build slowly and how can I improve build caching?

Dockerfile builds run slowly when layers invalidate caches; improve build caching by ordering instructions strategically, separating dependencies early, and pruning build artifacts during the compile phase.

Do I need distroless base images to run non-root Docker containers securely?

Distroless base images are highly recommended for non-root Docker containers because they strip unnecessary operating system packages, significantly minimizing the attack surface for production runtime environments.