Skip to content

Instantly share code, notes, and snippets.

@abhirockzz
Created March 26, 2019 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhirockzz/792968966157bde3611ce8703d432c6d to your computer and use it in GitHub Desktop.
Save abhirockzz/792968966157bde3611ce8703d432c6d to your computer and use it in GitHub Desktop.
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