Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save truh/7d0d1476caf75a0c0f2a265b3abb7415 to your computer and use it in GitHub Desktop.
Save truh/7d0d1476caf75a0c0f2a265b3abb7415 to your computer and use it in GitHub Desktop.
FROM ubuntu AS builder
RUN apt install a lot of dependencies
RUN make artifacts
RUN copy artifacts /packages
# At this point the container is often GBs in size
FROM scratch
COPY --from=builder /packages /packages
# Now we have a container that only contains the artifacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment