chore: update go version to 1.22.5 and add new toolchain configuration
This commit is contained in:
+2
-2
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user