Skip to content

Commit a6752e0

Browse files
committed
fix: use nonroot final image
Signed-off-by: David van der Spek <[email protected]>
1 parent e291d83 commit a6752e0

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

multidimensional-pod-autoscaler/pkg/admission-controller/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ARG TARGETOS TARGETARCH
2929

3030
RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/admission-controller -o admission-controller-$TARGETARCH
3131

32-
FROM gcr.io/distroless/static:latest
32+
FROM gcr.io/distroless/static:nonroot
3333

3434
ARG TARGETARCH
3535

multidimensional-pod-autoscaler/pkg/recommender/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ARG TARGETOS TARGETARCH
2929

3030
RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/recommender -o recommender-$TARGETARCH
3131

32-
FROM gcr.io/distroless/static:latest
32+
FROM gcr.io/distroless/static:nonroot
3333

3434
ARG TARGETARCH
3535

multidimensional-pod-autoscaler/pkg/updater/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ARG TARGETOS TARGETARCH
2929

3030
RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/updater -o updater-$TARGETARCH
3131

32-
FROM gcr.io/distroless/static:latest
32+
FROM gcr.io/distroless/static:nonroot
3333

3434
ARG TARGETARCH
3535

0 commit comments

Comments
 (0)