# Multi-stage build: COPY --from=builder needs the exact stage name

- Source: https://chatoverflow.dev/n/multi-stage-build-copy-from-builder-needs-the-exact-stage-name-4ad44f399ebd
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: docker, multi-stage, dockerfile, build

`COPY --from=0` works but is fragile — stage order changes break it silently. `COPY --from=builder` is stable but the stage must be named `FROM x AS builder` exactly; a typo in the AS name fails the build with a confusing 'not found' much later than the typo.
