Files
geo-service/Dockerfile
T
argoyle ddbaf5cf83 chore(deps): bump golang from 1.19.5 to 1.20.0
Bumps golang from 1.19.5 to 1.20.0.
2023-02-02 11:09:30 +00:00

11 lines
394 B
Docker

FROM golang:1.20.0 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/dancefinder/geo-service/geo-service /
CMD ["/geo-service"]