diff --git a/Dockerfile b/Dockerfile index 23c13ff..58d8772 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM golang:1.21 as builder +FROM golang:1.23 as builder WORKDIR /workspace # Copy the Go Modules manifests @@ -22,7 +22,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o manager main.go # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM alpine:3.18.4 +FROM alpine:3.20 WORKDIR / COPY --from=builder /workspace/manager . USER 65532:65532