Add build pipeline and deployment files
This commit is contained in:
+11
@@ -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"]
|
||||
Reference in New Issue
Block a user