Skip to content

Commit

Permalink
chore: Update docker base images with mcr (#511)
Browse files Browse the repository at this point in the history
**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]>
  • Loading branch information
helayoty committed Jul 12, 2024
1 parent 4cb9923 commit ed546f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/kaito/Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ed546f0

Please sign in to comment.