Skip to content
cccskills
FreePublished on GitHubEnglish overview

multi-stage-dockerfile

Create multi-stage Dockerfiles that separate building an application from running it. Guides image selection, caching, file inclusion, permissions, and health checks to produce smaller container images with only the dependencies needed at runtime.

OriginalShow the original description

Create optimized multi-stage Dockerfiles for any language or framework

github/awesome-copilot41,680 stars(GitHub 41,680 + cccskills 0)

Run score Not tested

See how to install

Good for

  • Separating build and runtime stages
  • Reducing files and packages in the final image
  • Reordering layers to reuse the build cache
  • Configuring non-root execution and health checks

Overview

What it does

This skill helps create multi-stage Dockerfiles that separate build and runtime environments. It organizes dependency setup, building, testing, and running into stages, then copies only the artifacts needed at runtime into the final image. It also covers choosing and versioning base images, ordering commands for cache reuse, and excluding unnecessary files with .dockerignore.

When it helps

Use it when build tools or unneeded packages are ending up in a container image, or when dependency installation repeats after each code change. It can also help review runtime as a non-root user, file permissions, and a health check suited to the application.

Example requests

  • “Create a Dockerfile with separate build and runtime stages.”
  • “Reorder the instructions to make dependency cache reuse easier.”
  • “Keep only the files needed in the final image and run as a non-root user.”

Notes

Choose Alpine-based or distroless images based on compatibility with the application. The skill recommends scanning the final image for vulnerabilities, but does not specify a scanning tool.

This overview was written by AI (OpenAI Codex) from the public SKILL.md. Check the original below for the exact behavior.

Document check

AI checked the SKILL.md for operations that need care and for setup requirements. The score comes only from actually running the skill (hands-on test).

SafetyAre sending data, deleting files, and running commands disclosed?
AGoodIt specifies non-root execution, restrictive permissions, build-secret exclusion, and vulnerability scans.
Easy setupDoes it need few tools or API keys, and are they documented?
AGoodNo required tool installation or API key is specified.

Not counted in the score. Rated by AI (OpenAI Codex) as of Oct 25, 2026. Treat it as a guide and read the original before installing.

Disagree? Request a re-evaluation

Tell us which point is wrong and why. No login needed. We will check it against the SKILL.md, redo the evaluation, and show the result here.

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

Files included (1)

  • SKILL.md2.3 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

Map an existing codebase into seven documents covering its technology, structure, architecture, conventions, integrations, tests, and concerns. Link findings to file evidence, mark unknowns, and highlight differences between stated plans and the actual implementation.

  • Get oriented in an unfamiliar codebase
  • Prepare documentation for a project handover
  • Compare documented architecture with implementation
github/awesome-copilot41.7KUpdated Oct 30, 2026

Assess a repository’s readiness for AI agents with AgentRC and generate a standalone HTML dashboard. Review scores across nine areas, see prioritized improvements, and optionally apply scoring policies tailored to an organization.

  • Assessing a repository’s readiness for AI agents
  • Prioritizing improvements from assessment results
  • Reviewing scores under an organization’s own policy
github/awesome-copilot41.7KUpdated Oct 30, 2026

Generate coding agent instruction files from a project's actual code using AgentRC. Capture detected languages, frameworks, and conventions in one shared file or split rules by topic and project area, with a preview before writing.

  • Create project instructions for VS Code Copilot
  • Refresh agent rules after project changes
  • Split monorepo instructions by project area
github/awesome-copilot41.7KUpdated Oct 30, 2026

Customize AgentRC readiness assessments to match team or organization standards. Choose or create policies that adjust check importance, disable irrelevant checks, set pass thresholds, and define requirements for automated checks in CI workflows.

  • Set shared readiness standards across an organization
  • Focus assessments on AI tooling
  • Adjust the importance of individual checks
github/awesome-copilot41.7KUpdated Oct 30, 2026

Analyze supplied ad performance data to identify wasted spend, strong campaigns, and next tests. Compare channels, assess whether test differences are meaningful, and produce budget reallocation recommendations with a prioritized action plan.

  • Identify ads and keywords to pause
  • Find campaigns and audiences worth scaling
  • Assess whether A/B test results are meaningful
github/awesome-copilot41.7KUpdated Oct 30, 2026

Turn code files into learning resources by adding comments that explain syntax, programming concepts, and design choices. Adjust explanation depth and repetition to the reader’s knowledge while preserving file structure, encoding, and syntax.

  • Add beginner-friendly explanations to existing code
  • Document the reasoning behind syntax and design choices
  • Adjust comment depth for readers with different experience
github/awesome-copilot41.7KUpdated Oct 30, 2026

See all skills by github

Report a problem with this skill