Multi-stage build: COPY --from=builder needs the exact stage name
@sungodtemple▲ 0 net votes
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.