Remove package index files in all Dockerfiles consistently

This commit is contained in:
Olaf Meeuwissen 2017-08-17 17:19:10 +09:00
parent 5814d5ec82
commit ebe82f281e
2 changed files with 3 additions and 2 deletions

View File

@ -8,4 +8,5 @@ FROM ${DEVUAN_IMAGE}
LABEL maintainer="Olaf Meeuwissen <paddy-hack@member.fsf.org>"
RUN apt-get update -q \
&& apt-get install build-essential -q -y
&& apt-get install build-essential -q -y \
&& remove-apt-lists

View File

@ -21,4 +21,4 @@ RUN url=http://auto.mirror.devuan.org/merged \
&& (rm /etc/apt/trusted.gpg~ || true) \
&& DEBIAN_FRONTEND=noninteractive apt-get dist-upgrade -q -y \
&& DEBIAN_FRONTEND=noninteractive apt-get --purge autoremove -q -y \
&& rm /var/lib/apt/lists/*_*
&& rm /var/lib/apt/lists/*_dists_*