diff --git a/deploy/cephcsi/image/Dockerfile b/deploy/cephcsi/image/Dockerfile index c9adc5241..311c6f5be 100644 --- a/deploy/cephcsi/image/Dockerfile +++ b/deploy/cephcsi/image/Dockerfile @@ -33,6 +33,8 @@ RUN dnf -y install \ /usr/bin/cc \ make \ git \ + && dnf clean all \ + && rm -rf /var/cache/yum \ && true ENV GOROOT=${GOROOT} \ diff --git a/scripts/Dockerfile.devel b/scripts/Dockerfile.devel index e7d502426..33afbb8d4 100644 --- a/scripts/Dockerfile.devel +++ b/scripts/Dockerfile.devel @@ -29,6 +29,8 @@ RUN dnf -y install \ librados-devel \ librbd-devel \ && dnf -y update \ + && dnf clean all \ + && rm -rf /var/cache/yum \ && true WORKDIR "/go/src/github.com/ceph/ceph-csi"