From 792cb5949e1ca7f828731f6b9ba92d65481eb815 Mon Sep 17 00:00:00 2001 From: Vince Prignano Date: Fri, 5 Apr 2024 12:30:56 -0700 Subject: [PATCH] use scratch Signed-off-by: Vince Prignano --- hack/tools/envtest/darwin/Dockerfile | 2 +- hack/tools/envtest/linux/Dockerfile | 2 +- hack/tools/envtest/windows/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hack/tools/envtest/darwin/Dockerfile b/hack/tools/envtest/darwin/Dockerfile index db58bae3b..e9b6a98db 100644 --- a/hack/tools/envtest/darwin/Dockerfile +++ b/hack/tools/envtest/darwin/Dockerfile @@ -56,5 +56,5 @@ RUN curl -sfLO https://github.com/coreos/etcd/releases/download/${ETCD_VERSION}/ cp ${ETCD_BASE_NAME}/etcd $DEST # Build the final image with the binaries. -FROM gcr.io/distroless/static:nonroot +FROM scratch COPY --from=builder /controller-tools/envtest /controller-tools/envtest diff --git a/hack/tools/envtest/linux/Dockerfile b/hack/tools/envtest/linux/Dockerfile index af4265260..900619693 100644 --- a/hack/tools/envtest/linux/Dockerfile +++ b/hack/tools/envtest/linux/Dockerfile @@ -45,5 +45,5 @@ RUN curl -sfLO https://github.com/coreos/etcd/releases/download/${ETCD_VERSION}/ cp ${ETCD_BASE_NAME}/etcd $DEST # Build the final image with the binaries. -FROM gcr.io/distroless/static:nonroot +FROM scratch COPY --from=builder /controller-tools/envtest /controller-tools/envtest diff --git a/hack/tools/envtest/windows/Dockerfile b/hack/tools/envtest/windows/Dockerfile index 023bede0f..b79537ddb 100644 --- a/hack/tools/envtest/windows/Dockerfile +++ b/hack/tools/envtest/windows/Dockerfile @@ -56,5 +56,5 @@ RUN curl -sfLO https://github.com/coreos/etcd/releases/download/${ETCD_VERSION}/ cp ${ETCD_BASE_NAME}/etcd.exe $DEST # Build the final image with the binaries. -FROM gcr.io/distroless/static:nonroot +FROM scratch COPY --from=builder /controller-tools/envtest /controller-tools/envtest