mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
Dockerfile: remove unneeded files to free space
Remove temporary, unneeded files in the docker image to save about 2.0M of space. Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
This commit is contained in:
parent
b8ce1816e9
commit
70aa5bc231
@ -54,7 +54,7 @@ RUN apt-get update \
|
|||||||
dnsmasq \
|
dnsmasq \
|
||||||
dmsetup \
|
dmsetup \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/* /var/log/*log /var/log/apt/* /var/lib/dpkg/*-old /var/cache/debconf/*-old
|
||||||
|
|
||||||
RUN update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk
|
RUN update-alternatives --set ovs-vswitchd /usr/lib/openvswitch-switch-dpdk/ovs-vswitchd-dpdk
|
||||||
|
|
||||||
@ -66,7 +66,7 @@ RUN if [ "$TARGETARCH" = "amd64" ]; then \
|
|||||||
libjson-glib-dev libgmp-dev libtasn1-dev python3-twisted \
|
libjson-glib-dev libgmp-dev libtasn1-dev python3-twisted \
|
||||||
net-tools softhsm2 \
|
net-tools softhsm2 \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*; fi
|
&& rm -rf /var/lib/apt/lists/* /var/log/*log /var/log/apt/* /var/lib/dpkg/*-old /var/cache/debconf/*-old; fi
|
||||||
|
|
||||||
RUN if [ "$TARGETARCH" = "arm64" ]; then \
|
RUN if [ "$TARGETARCH" = "arm64" ]; then \
|
||||||
# On AArch64, `setcap` binary should be installed via `libcap2-bin`.
|
# On AArch64, `setcap` binary should be installed via `libcap2-bin`.
|
||||||
@ -85,7 +85,7 @@ RUN if [ "$TARGETARCH" = "arm64" ]; then \
|
|||||||
perl \
|
perl \
|
||||||
texinfo \
|
texinfo \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*; fi
|
&& rm -rf /var/lib/apt/lists/* /var/log/*log /var/log/apt/* /var/lib/dpkg/*-old /var/cache/debconf/*-old; fi
|
||||||
|
|
||||||
# Fix the libssl-dev install
|
# Fix the libssl-dev install
|
||||||
RUN export ARCH="$(uname -m)" \
|
RUN export ARCH="$(uname -m)" \
|
||||||
|
Loading…
Reference in New Issue
Block a user