multi-stage-dockerfile
Create Lean Multi-Stage Dockerfiles
Container images can retain unnecessary build tools and rebuild dependencies too often. This skill guides Dockerfile design with separate build stages, efficient caching, and minimal runtime dependencies.
๋ด ์์ด์ ํธ๋ก ์ค์น
์ด ์์ฒญ์ ์์ด์ ํธ์ ๋ณต์ฌํ์ธ์. ๊ณต์ Skill ํ์ด์ง์ ๋งค๋ํ์คํธ๊ฐ ํฌํจ๋์ด ์์ต๋๋ค.
Review the Skillstore skill "multi-stage-dockerfile" from https://skillstore.io/skills/github-multi-stage-dockerfile.md and its manifest at https://skillstore.io/api/skills/github-multi-stage-dockerfile/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.์์ด์ ํธ๋ ๊ณ์ํด์ ๊ณํ์ ํ์ํ๊ณ ๋ณด์ ์ ์ฑ ์์ ์๊ตฌํ๋ ํ์ธ์ ์์ฒญํด์ผ ํฉ๋๋ค.
์์ด์ ํธ๊ฐ ์ฝ๊ธฐ ์ฌ์ด ๋ฆฌ์์ค
AI ์์ด์ ํธ, ํฌ๋กค๋ฌ, ์คํฌ๋ฆฝํธ๊ฐ ์ ์ฒด ํ์ด์ง ๋์ ์ ๋ฆฌ๋ ์ปจํ ์คํธ๋ง ํ์ํ ๋ ์ด ๋งํฌ๋ฅผ ์ฌ์ฉํ์ธ์.
ํ ์คํธํด ๋ณด๊ธฐ
"multi-stage-dockerfile" ์ฌ์ฉ ์ค์ ๋๋ค. Review a Node.js image that includes build tools and development dependencies at runtime.
์์ ๊ฒฐ๊ณผ:
- Use a builder stage to install dependencies and compile the application.
- Keep only production dependencies and required application artifacts in the runtime stage.
- Select a non-root runtime user and verify access to required files.
- Test application startup before comparing final image sizes.
"multi-stage-dockerfile" ์ฌ์ฉ ์ค์ ๋๋ค. Dependency installation repeats whenever application source files change.
์์ ๊ฒฐ๊ณผ:
- Copy dependency manifests before application source files.
- Install dependencies in an earlier layer to preserve its cache when only source files change.
- Exclude unnecessary files from the build context.
- Compare successive builds to verify cache reuse.
๋ณด์ ๊ฐ์ฌ
์์ All seven static findings are false positives involving Markdown code spans or defensive Docker guidance. No evidence found of prompt injection, data exfiltration, or malicious execution in SKILL.md. The skill provides instructions, not executable tooling or verified security guarantees.
์ํ ์์ธ
โ๏ธ ์ธ๋ถ ๋ช ๋ น์ด (5)
์ด ๋ณด๊ณ ์ ๊ณต์ ๋ฐ ์ธ์ฉ
๋ฒ์ ์ด ์ง์ ๋ ํ๊ฐ ๋ณด๊ณ ์, ์ค๋ฆฝ ๋ฐฐ์ง, ์๋ฒ ๋ ์นด๋ ๋ฐ ์ธ์ฉ์ ๊ณต์ ํ์ธ์. Skillstore๋ ๊ทผ๊ฑฐ๋ฅผ ๋ณด๊ณ ํ์ง๋ง ์ด Skill์ ์์ ์ฌ๋ถ๋ฅผ ํ๋จํ์ง ์์ต๋๋ค.
๋ณด๊ณ ์ ๋งํฌ ๋ณต์ฌ
https://skillstore.io/skills/github-multi-stage-dockerfile/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown ๋ฐฐ์ง
[](https://skillstore.io/skills/github-multi-stage-dockerfile?utm_source=security_passport_badge)HTML ๋ฐฐ์ง
<a href="https://skillstore.io/skills/github-multi-stage-dockerfile?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/github-multi-stage-dockerfile/security.svg" alt="Skillstore security assessment" loading="lazy"></a>์๋ฒ ๋ ์นด๋
<iframe src="https://skillstore.io/embed/skills/github-multi-stage-dockerfile.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>ํ์ ์ธ์ฉ (APA ยท BibTeX ยท CFF)
APA ์ธ์ฉ
github. (2026). multi-stage-dockerfile security audit report (audit version 1) [Author version unspecified]. Skillstore. https://skillstore.io/skills/github-multi-stage-dockerfile/audits/1BibTeX ์ธ์ฉ
@techreport{github-github-multi-stage-dockerfile-2026,
author = {github},
title = {multi-stage-dockerfile security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/github-multi-stage-dockerfile/audits/1},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "multi-stage-dockerfile security audit report (audit version 1)"
version: "unspecified"
type: report
authors:
- name: "github"
date-released: "2026-09-29"
url: "https://skillstore.io/skills/github-multi-stage-dockerfile/audits/1"
identifiers:
- type: other
value: "skillstore:github-multi-stage-dockerfile:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore ์ ์
์ด ์ ์์ ์ด์ ์ฆ๊ฑฐ ์ ๋ขฐ๋: ์ค๊ฐ๋ง๋ค ์ ์๋ ๊ฒ
Containerize an Application
Create separate build and runtime stages while preserving the dependencies and startup behavior an application needs.
Improve CI Build Efficiency
Review dependency installation order and build context contents to reduce avoidable cache invalidation.
Review Runtime Image Hardening
Assess runtime users, file permissions, base image choices, and unnecessary packages before deployment.
์ด ํ๋กฌํํธ๋ฅผ ์ฌ์ฉํด ๋ณด์ธ์
Create a multi-stage Dockerfile for my [language and framework] application. Ask for missing build commands, startup commands, and runtime requirements.
Review my Dockerfile and separate build dependencies from runtime requirements. Explain which artifacts must be copied and which tools can be excluded.
Review my Dockerfile and project structure for caching improvements. Suggest layer ordering and build context exclusions, then explain how to test the changes.
Review my multi-stage Dockerfile for production deployment. Evaluate base image compatibility, non-root permissions, artifact selection, runtime environment settings, and health checks. Identify assumptions requiring verification.
๋ชจ๋ฒ ์ฌ๋ก
- Provide build commands, startup requirements, and native dependency constraints before requesting a Dockerfile.
- Build and test the final image, including health checks and non-root file access.
- Use image digests for immutable references and secret mounts for sensitive build credentials.
ํผํ๊ธฐ
- Copying the entire builder filesystem into the runtime image.
- Choosing Alpine or distroless images without checking dependency and health check compatibility.
- Assuming separate build stages automatically remove secrets from intermediate layers and build caches.
์์ฃผ ๋ฌป๋ ์ง๋ฌธ
Which assistants can use this skill?
Does it support my language or framework?
Does this skill build or scan images automatically?
Will a multi-stage build always make my image smaller?
Do explicit version tags guarantee reproducible builds?
Are build secrets safe in a separate builder stage?
๊ฐ๋ฐ์ ์ธ๋ถ ์ ๋ณด
์์ฑ์
github๋ผ์ด์ ์ค
MIT
Skillstore ๋ฆฌ๋น์
r1
๋ฒ์ ์๋ด
์์ฑ์๊ฐ ๋ฒ์ ์ ์ ์ธํ์ง ์์์ต๋๋ค.
๋ฆฌํฌ์งํ ๋ฆฌ
https://github.com/github/awesome-copilot/tree/997e95a6e42869c350f8ca6ec4c066287697c9f0/skills/multi-stage-dockerfile์ฐธ์กฐ
bad9dafc37d1638cd29cb9bab06d5f8dbcd0f6c2
์ ์ง๋ณด์ ์ต์ ์ฑ
2026. 9. 30.
์ฌ์ฉ๋
0 ๋ค์ด๋ก๋ ยท 0 ์กฐํ
ํ์ผ ๊ตฌ์กฐ
๐ SKILL.md