mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 02:50:30 +00:00
build: remove cache while building container image
Reduce size of the container image by removing the cache in deploy and devel container. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
parent
f6ae612003
commit
16abbbc846
@ -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} \
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user