From ed546f0c83901d291fd353e3fb0b034b3f48ee81 Mon Sep 17 00:00:00 2001 From: Heba <31887807+helayoty@users.noreply.github.com> Date: Fri, 12 Jul 2024 05:52:55 +0300 Subject: [PATCH] chore: Update docker base images with mcr (#511) **Reason for Change**: Due to the new Docker policy, the dockerfile needs to be updated to use the golang and distroless mcr images. **Requirements** - [ ] added unit tests and e2e tests (if applicable). **Issue Fixed**: **Notes for Reviewers**: Signed-off-by: Heba Elayoty --- docker/kaito/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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