Skip to content

Commit 1bf7b81

Browse files
Merge pull request #361 from sdodson/OCPBUGS-77887
OCPBUGS-77887: Clean up cruft in /var/cache/dnf
2 parents 0e83989 + f54a202 commit 1bf7b81

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
1818
RUN 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

Dockerfile.art

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ FROM registry.ci.openshift.org/ocp/4.21:base-rhel9
2929
RUN 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
3939
COPY --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;"

0 commit comments

Comments
 (0)