Skip to content

Commit

Permalink
Update Dockerfile of litmus-portal frontend (#4396)
Browse files Browse the repository at this point in the history
- 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 <[email protected]>
Co-authored-by: Calvin Audier <[email protected]>
Co-authored-by: Saranya Jena <[email protected]>
  • Loading branch information
3 people committed Mar 15, 2024
1 parent 596394e commit 3459e7e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions chaoscenter/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 3459e7e

Please sign in to comment.