Created
July 27, 2018 22:13
-
-
Save DazWilkin/9c7ffc9dba5991e5c7b5dc0922043816 to your computer and use it in GitHub Desktop.
Knative
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.10 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"] | |
EXPOSE 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment