Created
March 26, 2019 05:39
-
-
Save abhirockzz/792968966157bde3611ce8703d432c6d to your computer and use it in GitHub Desktop.
This file contains 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 fnproject/go:dev as build-stage | |
WORKDIR /function | |
RUN go get -u github.com/golang/dep/cmd/dep | |
ADD . /go/src/func/ | |
RUN cd /go/src/func/ && dep ensure | |
RUN cd /go/src/func/ && go build -o func | |
FROM fnproject/go | |
RUN apk add --no-cache flite | |
WORKDIR /function | |
COPY --from=build-stage /go/src/func/func /function/ | |
ENTRYPOINT ["./func"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment