diff --git a/build/Dockerfile b/build/Dockerfile index 601b6e21..9f62902f 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -1,4 +1,4 @@ -FROM --platform=$BUILDPLATFORM golang:1.22-bullseye AS builder +FROM --platform=$BUILDPLATFORM golang:1.23-bookworm AS builder ENV GO111MODULE=on CGO_ENABLED=0 WORKDIR /work @@ -9,7 +9,7 @@ RUN --mount=target=. \ --mount=type=cache,target=/go/pkg \ cd httphandler && GOOS=$TARGETOS GOARCH=$TARGETARCH go build -o /out/ksserver . -FROM gcr.io/distroless/static-debian11:nonroot +FROM gcr.io/distroless/static-debian12:nonroot USER nonroot WORKDIR /home/nonroot/ diff --git a/build/kubescape-cli.Dockerfile b/build/kubescape-cli.Dockerfile index a2622f8c..965383be 100644 --- a/build/kubescape-cli.Dockerfile +++ b/build/kubescape-cli.Dockerfile @@ -1,4 +1,4 @@ -FROM gcr.io/distroless/base-debian11:debug-nonroot +FROM gcr.io/distroless/base-debian12:debug-nonroot USER nonroot WORKDIR /home/nonroot/