Move handlers into ./handlers

This commit is contained in:
Alex Ellis
2017-01-25 22:29:17 +00:00
parent 381556a1e1
commit 501e813d41
9 changed files with 233 additions and 153 deletions

View File

@ -6,14 +6,15 @@ RUN go get -d github.com/docker/docker/api/types \
&& go get -d github.com/docker/docker/client \
&& go get github.com/gorilla/mux \
&& go get github.com/prometheus/client_golang/prometheus
# RUN go get -d github.com/prometheus/client_model/go
RUN go get -d github.com/Sirupsen/logrus
WORKDIR /go/src/github.com/alexellis/faas/gateway
COPY metrics metrics
COPY requests requests
COPY tests tests
COPY tests tests
COPY handlers handlers
COPY server.go .
COPY proxy.go .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o app .