Skip to content

Commit

Permalink
Merge pull request #111 from dimityrmirchev/distroless-image
Browse files Browse the repository at this point in the history
Change base image from alpine to distroless
  • Loading branch information
MartinWeindel authored Jul 4, 2022
2 parents 25be791 + 7c612e4 commit 09336e3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,12 @@ COPY . .
RUN make release

############# base
FROM alpine:3.16.0 AS base
FROM gcr.io/distroless/static-debian11:nonroot AS base

############# cert-controller-manager #############
FROM base AS cert-controller-manager

RUN addgroup -S app && adduser -S -G app app
WORKDIR /
COPY --from=builder /build/cert-controller-manager /cert-controller-manager
USER app

ENTRYPOINT ["/cert-controller-manager"]

0 comments on commit 09336e3

Please sign in to comment.