docker
Installation
SKILL.md
Multi-stage Builds
Always use multi-stage builds to separate build-time dependencies from the runtime image. Compilers, SDKs, and dev tools installed in a build stage must never land in the final image.
# Stage 1 — build
FROM build-image AS build
WORKDIR /src
# ... install deps, compile
# Stage 2 — runtime
FROM runtime-image AS final
WORKDIR /app
COPY /src/output .