From 3f32c6d6b8a871b9a1d731d628cc0db7559915cb Mon Sep 17 00:00:00 2001 From: Travis Reeder Date: Thu, 12 Oct 2017 14:26:53 -0400 Subject: [PATCH] cleanup dockerfile --- Dockerfile | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/Dockerfile b/Dockerfile index 06cb1815d..b1915afcd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,31 +1,17 @@ -# build stage -# FROM golang:alpine 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 -# If dep ever gets decent enough to use, try `dep ensure --vendor-only` from here: https://medium.com/travis-on-docker/triple-stage-docker-builds-with-go-and-angular-1b7d2006cb88 -#RUN go get -u github.com/Masterminds/glide -#ADD glide.* $D/ -#RUN cd $D && glide install -v ADD . $D -# RUN cd $D && go build -o fn-alpine && cp fn-alpine /tmp/ -# TODO: ADD BACK- RUN cd $D && go build -o /app/functions +RUN cd $D && go build -o /app/functions -# final stage -# FROM fnproject/dind WORKDIR /app -# COPY --from=build-env /tmp/fn-alpine /app/functions CMD ["./functions"] # For building extensions ONBUILD ARG REPO -ONBUILD RUN echo "YOOOO $DIR" -ONBUILD RUN echo $REPO -# ONBUILD ENV GOPATH=$GOPATH:$DIR -# ONBUILD RUN echo $GOPATH ONBUILD ADD . $GOPATH/src/$REPO ONBUILD ADD main.go $D ONBUILD RUN cd $D && go build -o /app/functions