docker-expert

Optimize Dockerfiles and multi-stage builds for smaller, secure images.

16|9|Updated Nov 6, 2013
One-click install
npx skills add https://github.com/erikstmartin/dotfiles --skill docker-expert-erikstmartin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: docker-expert
Source: https://github.com/erikstmartin/dotfiles/tree/main/skills/catalog/infra/docker-expert
Command: npx skills add https://github.com/erikstmartin/dotfiles --skill docker-expert-erikstmartin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Docker workflows and production-ready images often suffer from bloated sizes, slow builds, and insecure configurations. This Skill provides a structured approach to optimize Dockerfiles, implement robust multi-stage builds, and configure Compose-based orchestration to improve build times, image footprints, and runtime security.

Core Features & Use Cases

  • Dockerfile optimization: layer ordering, cache usage, and combined RUN commands to shorten build times.
  • Multi-Stage Build workflows: isolate dependencies, minimize final image size, and produce production-ready artifacts.
  • Docker Compose orchestration: health checks, networks, resources, and environment separation for dev vs prod.
  • Complete examples: guidance and patterns for optimized images and safe deployments in Node.js, Python, or similar microservices.

Quick Start

Apply the Docker Expert workflow to refactor a Dockerfile into a multi-stage, cache-friendly production image with proper security and compose-ready configurations.

Frequently Asked Questions about docker-expert

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

FAQPage Schema
How do I optimize a Dockerfile for faster builds and smaller image sizes?

What's the best way to use Docker multi-stage builds for microservices?

What's the best way to use Docker multi-stage builds for microservices?

How do I configure Docker Compose for dev and prod environments?

How do I configure Docker Compose for dev and prod environments?

Does this Skill support BuildKit and runtime debugging?

Does this Skill support BuildKit and runtime debugging?

How do I improve Docker container security and minimize production footprints?

How do I improve Docker container security and minimize production footprints?

Improve Docker security by isolating dependencies through multi-stage builds and applying proper layering techniques. This Skill provides structured approaches to ensure safe deployments and minimal production footprints for your containerized applications.