Last active
January 21, 2021 02:57
-
-
Save qweliant/2128a800c95a4eb4bee4da7445b41ce7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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