Add distance matrix

This commit is contained in:
2019-02-26 14:54:16 +01:00
parent c8082554ec
commit 4ccc2fc98e
7 changed files with 113 additions and 31 deletions
+4 -5
View File
@@ -1,11 +1,10 @@
FROM gunosy/ci-go-glide as builder
WORKDIR /go/src/gitlab.com/unboundsoftware/geo-service
COPY glide.* ./
RUN glide install
FROM golang:1.11-stretch as builder
WORKDIR /go/src/gitlab.com/unboundsoftware/dancefinder/geo-service
COPY * ./
RUN go get
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o geo-service .
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /go/src/gitlab.com/unboundsoftware/geo-service/geo-service /
COPY --from=builder /go/src/gitlab.com/unboundsoftware/dancefinder/geo-service/geo-service /
CMD ["/geo-service"]