diff --git a/docker/kaito/Dockerfile b/docker/kaito/Dockerfile index 33b147f0b..70a18e71b 100644 --- a/docker/kaito/Dockerfile +++ b/docker/kaito/Dockerfile @@ -1,5 +1,5 @@ # Build the manager binary -FROM --platform=$BUILDPLATFORM golang:1.22 as builder +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang:1.22 as builder ARG TARGETOS ARG TARGETARCH @@ -32,7 +32,7 @@ RUN --mount=type=cache,target=${GOCACHE} \ # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details -FROM --platform=$BUILDPLATFORM gcr.io/distroless/static:nonroot@sha256:e9ac71e2b8e279a8372741b7a0293afda17650d926900233ec3a7b2b7c22a246 +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0 WORKDIR / COPY --from=builder /workspace/manager . USER 65532:65532