mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
18 lines
380 B
Docker
18 lines
380 B
Docker
FROM fnproject/dind
|
|
RUN apk add --no-cache ca-certificates build-base go git bzr mercurial gcc
|
|
|
|
ENV GOPATH=/go
|
|
ENV D=/go/src/github.com/fnproject/fn
|
|
|
|
ADD . $D
|
|
RUN cd $D && go build -o /app/functions
|
|
|
|
WORKDIR /app
|
|
CMD ["./functions"]
|
|
|
|
# For building extensions
|
|
ONBUILD ARG REPO
|
|
ONBUILD ADD . $GOPATH/src/$REPO
|
|
ONBUILD ADD main.go $D
|
|
ONBUILD RUN cd $D && go build -o /app/functions
|