chore: update go version to 1.22.5 and add new toolchain configuration

This commit is contained in:
2024-07-08 18:21:29 +02:00
parent 87fb9cf510
commit 37b8011d4c
3 changed files with 11 additions and 7 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
FROM golang:1.22.5 as builder
WORKDIR /go/src/gitlab.com/unboundsoftware/dancefinder/geo-service
WORKDIR /src
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 /
COPY --from=builder /src/geo-service /
CMD ["/geo-service"]