Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions chaoscenter/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.10
FROM registry.access.redhat.com/ubi9/ubi-minimal:9.7

# apply latest patches
RUN microdnf update --nodocs \
&& microdnf module enable nginx:1.20 \
&& microdnf install --nodocs nginx \
&& microdnf install --nodocs python3 \
RUN microdnf update -y --nodocs \
&& microdnf install -y --nodocs nginx \
&& microdnf install -y --nodocs python3 python3-pip \
&& pip3 install --no-cache-dir pyyaml \
&& microdnf clean all

Expand All @@ -16,9 +15,9 @@ WORKDIR /opt/chaos

# 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
RUN touch /run/nginx.pid && \
chown -R 65534:0 /opt/chaos /var/log/nginx /etc/nginx /var/lib/nginx /run/nginx.pid && \
chmod -R 755 /opt/chaos /var/log/nginx /etc/nginx /var/lib/nginx /run/nginx.pid

USER 65534

Expand Down
Loading