mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
wip
This commit is contained in:
16
Dockerfile
16
Dockerfile
@@ -2,6 +2,9 @@ FROM fnproject/dind
|
|||||||
RUN apk add --no-cache ca-certificates build-base go git bzr mercurial gcc
|
RUN apk add --no-cache ca-certificates build-base go git bzr mercurial gcc
|
||||||
|
|
||||||
ENV GOPATH=/go
|
ENV GOPATH=/go
|
||||||
|
RUN env
|
||||||
|
ENV PATH=$PATH:/go/bin
|
||||||
|
RUN env
|
||||||
ENV D=/go/src/github.com/fnproject/fn
|
ENV D=/go/src/github.com/fnproject/fn
|
||||||
|
|
||||||
ADD . $D
|
ADD . $D
|
||||||
@@ -12,6 +15,13 @@ CMD ["./functions"]
|
|||||||
|
|
||||||
# For building extensions
|
# For building extensions
|
||||||
ONBUILD ARG REPO
|
ONBUILD ARG REPO
|
||||||
ONBUILD ADD . $GOPATH/src/$REPO
|
ONBUILD ENV REPOPATH=$GOPATH/src/$REPO
|
||||||
ONBUILD ADD main.go $D
|
ONBUILD ADD . $REPOPATH
|
||||||
ONBUILD RUN cd $D && go build -o /app/functions
|
# dep just way too slow and error prone... :(
|
||||||
|
# It might be a good idea to move interfaces and models to a new repo with minimal depenencies, then this might work nice
|
||||||
|
# ONBUILD RUN go get -u github.com/golang/dep/cmd/dep
|
||||||
|
# ONBUILD RUN cd $REPOPATH && dep init && dep ensure
|
||||||
|
# Try doing regular go get:
|
||||||
|
ONBUILD RUN cd $REPOPATH && go get
|
||||||
|
# ONBUILD ADD main.go $D
|
||||||
|
ONBUILD RUN cd $REPOPATH && go build -o /app/functions
|
||||||
|
|||||||
Reference in New Issue
Block a user