Skip to content

Commit 7dd2fbc

Browse files
Merge pull request #8329 from andfasano/agent-day2-fix-baremetal-image-cleanup
AGENT-864: cleanup dnf cache after installing node-joiner reqs
2 parents e223641 + 7936f19 commit 7dd2fbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

images/baremetal/Dockerfile.ci

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ RUN dnf upgrade -y && \
1818

1919
# node-joiner requirements
2020
COPY --from=builder /go/src/github.com/openshift/installer/bin/node-joiner /bin/node-joiner
21-
RUN dnf install -y nmstate openshift-clients
21+
RUN dnf install -y nmstate openshift-clients && \
22+
dnf clean all && rm -rf /var/cache/yum/*
2223

2324
RUN mkdir /output && chown 1000:1000 /output
2425
USER 1000:1000

0 commit comments

Comments
 (0)