From 3459e7ef8cc4b2404b8d79480fd3e5e608fb58cc Mon Sep 17 00:00:00 2001 From: Calvinaud Date: Fri, 15 Mar 2024 11:56:28 +0100 Subject: [PATCH] Update Dockerfile of litmus-portal frontend (#4396) - Update the chown command for openshift need - Combine the 3 RUN for chown command into a single one to reduce number of layers Signed-off-by: Calvin Audier Co-authored-by: Calvin Audier Co-authored-by: Saranya Jena --- chaoscenter/web/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chaoscenter/web/Dockerfile b/chaoscenter/web/Dockerfile index ce763e967e..731f50971a 100644 --- a/chaoscenter/web/Dockerfile +++ b/chaoscenter/web/Dockerfile @@ -8,9 +8,11 @@ COPY ./entrypoint.sh /opt WORKDIR /opt/chaos -RUN chown 65534:65534 -R /opt/chaos -RUN chown 65534:65534 -R /var/log/nginx -RUN chown 65534:65534 -R /etc/nginx +# Update the permission of group to 0(root) to make it Openshift friendly +# as Openshift runs container with an arbitrary uid that in the root group +RUN chown 65534:0 -R /opt/chaos && \ + chown 65534:0 -R /var/log/nginx && \ + chown 65534:0 -R /etc/nginx USER 65534