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