From a0ed47b51ca22f1ee74df19959a1af023d79b765 Mon Sep 17 00:00:00 2001 From: Hans <11695964+hupling@users.noreply.github.com> Date: Mon, 7 Nov 2022 12:33:47 +0100 Subject: [PATCH] add openshift permission --- Dockerfile.jetty | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile.jetty b/Dockerfile.jetty index 8c8d6a2..df3c4b7 100644 --- a/Dockerfile.jetty +++ b/Dockerfile.jetty @@ -36,3 +36,7 @@ RUN rm -rf $WEBAPP_PATH && \ COPY --from=builder /app/target/plantuml.war $WEBAPP_PATH/ROOT.war ENTRYPOINT ["/entrypoint.sh"] +# Openshift https://docs.openshift.com/container-platform/4.9/openshift_images/create-images.html#images-create-guide-openshift_create-images +USER root +RUN chgrp -R 0 $JETTY_BASE && chmod -R g=u $JETTY_BASE +RUN chgrp -R 0 /tmp && chmod -R g=u /tmp