Skip to content

Instantly share code, notes, and snippets.

@timhberry
Created January 31, 2020 13:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timhberry/df4b7f6ade69804b0956c56914c1afea to your computer and use it in GitHub Desktop.
Save timhberry/df4b7f6ade69804b0956c56914c1afea to your computer and use it in GitHub Desktop.
FROM golang:1.13 as build
WORKDIR /go/src/app
COPY . .
RUN go build -v -o app .
FROM gcr.io/distroless/base
COPY --from=build /go/src/app/. /
CMD ["/app"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment