28 s loop7 sentencesSilent, read alongScene: JourneyRead the story, sentence by sentence 7 sentences
What you'll be able to say
- A multi-stage build uses several FROM lines in one Dockerfile; each FROM starts a new stage with its own base image.
- COPY --from=build copies chosen files, like a compiled binary, from an earlier stage into a later one; everything else stays behind.
- Things you leave in earlier stages, like compilers and build tools, stay out of the final image: smaller, with less to attack.