$ ./guess_the_languageDevOps
DevOps · hard · #73

What does --from=builder do in a Dockerfile?

COPY --from=builder /app/bin /usr/local/bin
  1. Copies artifacts from an earlier build stage
  2. Downloads a file from a remote URL at build
  3. Mounts a host directory into the image
  4. Imports environment variables into the build
Multi-stage builds copy only the output, leaving toolchains behind.
Play DevOps ▸