Create Multistage Dockerfile
Skill Verified ActiveCreate multi-stage Dockerfiles that separate build and runtime environments for minimal production images. Covers builder/runtime stage separation, artifact copying, scratch/distroless/alpine targets, and size comparison. Use when production images are too large, when build tools are included in the final image, when you need separate dev and prod images from one Dockerfile, or when deploying to constrained environments like edge or serverless.
To automate the creation of efficient, multi-stage Dockerfiles, significantly reducing production image sizes and security surface by separating build tools from runtime dependencies.
Features
- Generate multi-stage Dockerfiles
- Separate build and runtime environments
- Optimize for minimal production images
- Support scratch, distroless, and alpine targets
- Provide language-specific build patterns (Node.js, Python, Go, Rust)
Use Cases
- When production Docker images are excessively large
- When build tools are unnecessarily included in the final image
- To create separate development and production images from a single Dockerfile
- For deploying applications to constrained environments like edge or serverless platforms
Non-Goals
- Creating single-stage Dockerfiles
- Optimizing Docker build cache layers
- Managing Docker Compose configurations
Documentation
- info:Configuration & parameter referenceThe skill lists required and optional inputs, but does not explicitly document default values or precedence order for any configuration aspects.
Installation
/plugin install agent-almanac@pjt222-agent-almanacQuality Score
VerifiedTrust Signals
Similar Extensions
Containerize MCP Server
100Containerize an R-based MCP (Model Context Protocol) server using Docker. Covers mcptools integration, port exposure, stdio vs HTTP transport, and connecting Claude Code to the containerized server. Use when deploying an R MCP server without requiring a local R installation, creating a reproducible MCP server environment, running MCP servers alongside other containerized services, or distributing an MCP server to other developers.
Optimize Docker Build Cache
99Optimize Docker build times using layer caching, multi-stage builds, BuildKit features, and dependency-first copy patterns. Applicable to R, Node.js, and Python projects. Use when Docker builds are slow due to repeated package installations, when rebuilds reinstall all dependencies on every code change, when image sizes are unnecessarily large, or when CI/CD pipeline builds are a bottleneck.
Create Dockerfile
98Create general-purpose Dockerfiles for Node.js, Python, Go, Rust, and Java projects. Covers base image selection, dependency installation, user permissions, COPY patterns, ENTRYPOINT vs CMD, and .dockerignore. Use when containerizing an application for the first time, creating a consistent build/runtime environment, preparing an app for cloud deployment or Docker Compose, or when no existing Dockerfile is present in the project.
Docker Development
98Docker and container development agent skill and plugin for Dockerfile optimization, docker-compose orchestration, multi-stage builds, and container security hardening. Use when: user wants to optimize a Dockerfile, create or improve docker-compose configurations, implement multi-stage builds, audit container security, reduce image size, or follow container best practices. Covers build performance, layer caching, secret management, and production-ready container patterns.
Azure Container Registry SDK for Python
100Azure Container Registry SDK for Python. Use for managing container images, artifacts, and repositories. Triggers: "azure-containerregistry", "ContainerRegistryClient", "container images", "docker registry", "ACR".
Performance Analysis
100Comprehensive performance analysis, bottleneck detection, and optimization recommendations for Claude Flow swarms