Skip to content

Commit

Permalink
Swap base image from alpine to distroless
Browse files Browse the repository at this point in the history
  • Loading branch information
andyasp committed May 30, 2024
1 parent 1a50079 commit 234ccf3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ COPY . /src/rollout-operator
WORKDIR /src/rollout-operator
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make ${BUILDTARGET}

FROM alpine:3.19
RUN apk add --no-cache ca-certificates gcompat
FROM gcr.io/distroless/static-debian12

COPY --from=build /src/rollout-operator/rollout-operator /bin/rollout-operator
ENTRYPOINT [ "/bin/rollout-operator" ]
Expand Down
2 changes: 1 addition & 1 deletion integration/mock-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.19
FROM gcr.io/distroless/static-debian12

COPY mock-service /bin/mock-service
ENTRYPOINT [ "/bin/mock-service" ]
Expand Down

0 comments on commit 234ccf3

Please sign in to comment.