From a6752e0d62c0c452806ea97b4b248846738e045c Mon Sep 17 00:00:00 2001 From: David van der Spek Date: Tue, 10 Dec 2024 15:27:06 +0100 Subject: [PATCH] fix: use nonroot final image Signed-off-by: David van der Spek --- .../pkg/admission-controller/Dockerfile | 2 +- multidimensional-pod-autoscaler/pkg/recommender/Dockerfile | 2 +- multidimensional-pod-autoscaler/pkg/updater/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/multidimensional-pod-autoscaler/pkg/admission-controller/Dockerfile b/multidimensional-pod-autoscaler/pkg/admission-controller/Dockerfile index c5ef15d76268..57a1f9a2dda7 100644 --- a/multidimensional-pod-autoscaler/pkg/admission-controller/Dockerfile +++ b/multidimensional-pod-autoscaler/pkg/admission-controller/Dockerfile @@ -29,7 +29,7 @@ ARG TARGETOS TARGETARCH RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/admission-controller -o admission-controller-$TARGETARCH -FROM gcr.io/distroless/static:latest +FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/multidimensional-pod-autoscaler/pkg/recommender/Dockerfile b/multidimensional-pod-autoscaler/pkg/recommender/Dockerfile index 26f7b20f0a1d..cdf7921d5589 100644 --- a/multidimensional-pod-autoscaler/pkg/recommender/Dockerfile +++ b/multidimensional-pod-autoscaler/pkg/recommender/Dockerfile @@ -29,7 +29,7 @@ ARG TARGETOS TARGETARCH RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/recommender -o recommender-$TARGETARCH -FROM gcr.io/distroless/static:latest +FROM gcr.io/distroless/static:nonroot ARG TARGETARCH diff --git a/multidimensional-pod-autoscaler/pkg/updater/Dockerfile b/multidimensional-pod-autoscaler/pkg/updater/Dockerfile index 63de33b1fa32..cf03102f95d2 100644 --- a/multidimensional-pod-autoscaler/pkg/updater/Dockerfile +++ b/multidimensional-pod-autoscaler/pkg/updater/Dockerfile @@ -29,7 +29,7 @@ ARG TARGETOS TARGETARCH RUN CGO_ENABLED=0 LD_FLAGS=-s GOARCH=$TARGETARCH GOOS=$TARGETOS go build -C pkg/updater -o updater-$TARGETARCH -FROM gcr.io/distroless/static:latest +FROM gcr.io/distroless/static:nonroot ARG TARGETARCH