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