Add build pipeline and deployment files

This commit is contained in:
2019-02-11 12:52:32 +01:00
parent eebefb0ef4
commit 819feb6401
4 changed files with 87 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM gunosy/ci-go-glide as builder
WORKDIR /go/src/gitlab.com/unboundsoftware/geo-service
COPY glide.* ./
RUN glide install
COPY * ./
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 /
CMD ["/geo-service"]