Created
June 17, 2019 20:14
-
-
Save DazWilkin/899364c4b1284b7ef9142d0ffcf3a4db to your computer and use it in GitHub Desktop.
Cloud Run & Cloud SQL
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 /go/src/app | |
COPY . . | |
RUN go get -d -v ./... | |
RUN go install -v ./... | |
FROM gcr.io/distroless/base | |
COPY --from=build /go/bin/app / | |
ENTRYPOINT ["/app"] | |
CMD ["--endpoint=:8080"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment