Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active August 31, 2022 06:11
Show Gist options
  • Save percybolmer/4441ce317143bad1f14cb5b918d2d7fc to your computer and use it in GitHub Desktop.
Save percybolmer/4441ce317143bad1f14cb5b918d2d7fc to your computer and use it in GitHub Desktop.
dockerfile multibuild
FROM golang:1.9 AS builder
# Build our software binary
FROM scratch
# Here we will copy the binary from the Builder Image into this scratch Container
COPY --from=builder path/on/builder path/on/scratch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment