跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Create Multistage Dockerfile

技能 已验证 活跃

Create 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.

功能

  • 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)

使用场景

  • 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

非目标

  • 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.

安装

/plugin install agent-almanac@pjt222-agent-almanac

质量评分

已验证
99 /100
about 22 hours ago 分析

信任信号

最近提交1 day ago
星标14
许可证MIT
状态
查看源代码

类似扩展

Containerize MCP Server

100

Containerize 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.

技能
pjt222

Optimize Docker Build Cache

99

Optimize 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.

技能
pjt222

Create Dockerfile

98

Create 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.

技能
pjt222

Docker Development

98

Docker 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.

技能
alirezarezvani

Azure Container Registry SDK for Python

100

Azure Container Registry SDK for Python. Use for managing container images, artifacts, and repositories. Triggers: "azure-containerregistry", "ContainerRegistryClient", "container images", "docker registry", "ACR".

技能
microsoft

Performance Analysis

100

Comprehensive performance analysis, bottleneck detection, and optimization recommendations for Claude Flow swarms

技能
ruvnet