Skip to content

Instantly share code, notes, and snippets.

@qweliant
Last active January 21, 2021 02:57
Show Gist options
  • Save qweliant/2128a800c95a4eb4bee4da7445b41ce7 to your computer and use it in GitHub Desktop.
Save qweliant/2128a800c95a4eb4bee4da7445b41ce7 to your computer and use it in GitHub Desktop.
FROM golang:1.12 AS build
WORKDIR /opt/src
COPY . .
WORKDIR /opt/src/go
RUN go get -d -v ./...
RUN go build -o quickstart
FROM gcr.io/distroless/base-debian10
#FROM gcr.io/distroless/base-debian10:debug
COPY --from=build /opt/src/go/quickstart /
EXPOSE 8000
ENTRYPOINT ["/quickstart"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment