Skip to content

Commit

Permalink
remove COPY ca certificates
Browse files Browse the repository at this point in the history
  • Loading branch information
mainred committed Aug 23, 2024
1 parent b8c173f commit bc59fc6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions operator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ FROM --platform=$BUILDPLATFORM mcr.microsoft.com/oss/go/microsoft/golang@sha256:

ARG VERSION
ARG APP_INSIGHTS_ID
RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates

WORKDIR /workspace
COPY . .
Expand All @@ -27,7 +26,6 @@ RUN --mount=type=cache,target="/root/.cache/go-build" \
# mcr.microsoft.com/cbl-mariner/distroless/minimal:2.0
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/cbl-mariner/distroless/minimal@sha256:63a0a70ceaa1320bc6eb98b81106667d43e46b674731ea8d28e4de1b87e0747f
WORKDIR /
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /workspace/retina-operator .
USER 65532:65532

Expand Down

0 comments on commit bc59fc6

Please sign in to comment.