Skip to content

Commit ed546f0

Browse files
authored
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**: <!-- If this PR fixes GitHub issue 4321, add "Fixes #4321" to the next line. --> **Notes for Reviewers**: Signed-off-by: Heba Elayoty <[email protected]>
1 parent 4cb9923 commit ed546f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docker/kaito/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Build the manager binary
2-
FROM --platform=$BUILDPLATFORM golang:1.22 as builder
2+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang:1.22 as builder
33
ARG TARGETOS
44
ARG TARGETARCH
55

@@ -32,7 +32,7 @@ RUN --mount=type=cache,target=${GOCACHE} \
3232

3333
# Use distroless as minimal base image to package the manager binary
3434
# Refer to https://github.com/GoogleContainerTools/distroless for more details
35-
FROM --platform=$BUILDPLATFORM gcr.io/distroless/static:nonroot@sha256:e9ac71e2b8e279a8372741b7a0293afda17650d926900233ec3a7b2b7c22a246
35+
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0
3636
WORKDIR /
3737
COPY --from=builder /workspace/manager .
3838
USER 65532:65532

0 commit comments

Comments
 (0)