From 414c4a6d0c8fdb9af8d7af19db3f589726a1f3a7 Mon Sep 17 00:00:00 2001 From: Jordan Date: Mon, 1 Jul 2024 08:29:15 -0500 Subject: [PATCH] don't erase the filesystem from the base Signed-off-by: Jordan --- operator-framework-tools.Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/operator-framework-tools.Dockerfile b/operator-framework-tools.Dockerfile index f557e37c4e..2e70af70c2 100644 --- a/operator-framework-tools.Dockerfile +++ b/operator-framework-tools.Dockerfile @@ -13,10 +13,8 @@ COPY . . RUN make build/registry cross FROM registry.ci.openshift.org/ocp/4.17:base-rhel9 -# clear the base -RUN rm -rf --no-preserve-root / 2>/dev/null || exit 0 -# clear any default CMD, ENTRYPOINT -ENTRYPOINT [] +ENTRYPOINT ["sh", "-c", "echo 'Running this image is not supported' && exit 1"] +# clear any default CMD CMD [] # copy a rhel-specific instance