Update base image to distroless/base-debian12

This commit is contained in:
Ruins
2026-04-01 14:43:45 +09:00
committed by GitHub
parent 8180cf7c39
commit 82339cc5b7
+1 -1
View File
@@ -5,7 +5,7 @@ COPY go.* $GOPATH/src/mypackage/myapp/
WORKDIR $GOPATH/src/mypackage/myapp/
RUN CGO_ENABLED=0 go build -ldflags="-w -s" -o /go/bin/docker_state_exporter
FROM gcr.io/distroless/base-debian11
FROM gcr.io/distroless/base-debian12
COPY --from=builder /go/bin/docker_state_exporter /go/bin/docker_state_exporter
EXPOSE 8080
ENTRYPOINT ["/go/bin/docker_state_exporter"]