Zum Hauptinhalt springen
Dieser Inhalt ist noch nicht in Ihrer Sprache verfügbar und wird auf Englisch angezeigt.

Create Dockerfile

Skill Verifiziert Aktiv
Teil von:Agent Almanac

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.

Zweck

To automate the creation of production-ready Dockerfiles for common application stacks, ensuring consistency and best practices.

Funktionen

  • Generates Dockerfiles for Node.js, Python, Go, Rust, and Java.
  • Selects appropriate base images (slim/distroless for production).
  • Handles dependency installation and non-root user setup.
  • Includes guidance on ENTRYPOINT vs. CMD and .dockerignore.
  • Provides build and verification steps.

Anwendungsfälle

  • Containerizing a new application for the first time.
  • Creating a consistent build and runtime environment.
  • Preparing an application for cloud deployment or Docker Compose.
  • Generating a Dockerfile when none exists in a project.

Nicht-Ziele

  • Building Docker images directly.
  • Optimizing complex multi-stage builds (suggests related skills).
  • Handling highly specialized or niche language runtimes.
  • Providing runtime container management.

Workflow

  1. Select language and entry point.
  2. Choose base image based on language and environment.
  3. Write Dockerfile content (e.g., dependency installation, user setup, copy patterns).
  4. Create .dockerignore file.
  5. Add non-root user configuration.
  6. Build and verify the Docker image.

Praktiken

  • Dockerfile Best Practices
  • Containerization
  • Development Environment Setup

Installation

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

Qualitätspunktzahl

Verifiziert
98 /100
Analysiert about 23 hours ago

Vertrauenssignale

Letzter Commit2 days ago
Sterne14
LizenzMIT
Status
Quellcode ansehen

Ähnliche Erweiterungen

Cleanup Cycles

100

Detect and untangle circular dependencies. Runs madge/skott (TS), pycycle (Py), or compiler-only checks (Go/Rust). Auto-fixes leaf-extractable cycles; reports core cycles for human review. Use when the user asks to find circular imports, fix dependency cycles, or untangle module graph. Example queries — "find circular imports", "fix dependency cycles", "untangle our module graph", "why is madge complaining".

Skill
raintree-technology

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.

Skill
pjt222

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.

Skill
pjt222

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

Skill
microsoft

Coding Standards

100

Baseline cross-project coding conventions for naming, readability, immutability, and code-quality review. Use detailed frontend or backend skills for framework-specific patterns.

Skill
affaan-m

Create Multistage Dockerfile

99

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.

Skill
pjt222