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