12 lines
398 B
Docker
12 lines
398 B
Docker
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"]
|