File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
1818RUN INSTALL_PKGS="nginx" && \
1919 dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
2020 rpm -V $INSTALL_PKGS && \
21- yum -y clean all --enablerepo='*' && \
21+ yum -y clean all --enablerepo='*' && rm -rf /var/cache/dnf/* && \
2222 chown -R 1001:0 /var/lib/nginx /var/log/nginx /run && \
2323 chmod -R ug+rwX /var/lib/nginx /var/log/nginx /run
2424
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
2929RUN INSTALL_PKGS="nginx" && \
3030 dnf install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
3131 rpm -V $INSTALL_PKGS && \
32- yum -y clean all --enablerepo='*' && \
32+ yum -y clean all --enablerepo='*' && rm -rf /var/cache/dnf/* && \
3333 chown -R 1001:0 /var/lib/nginx /var/log/nginx /run && \
3434 chmod -R ug+rwX /var/lib/nginx /var/log/nginx /run
3535
@@ -39,4 +39,4 @@ USER 1001
3939COPY --from=build /opt/app-root/src/app/dist /opt/app-root/src
4040
4141# Run the server
42- CMD nginx -g "daemon off;"
42+ CMD nginx -g "daemon off;"
You can’t perform that action at this time.
0 commit comments