diff --git a/docker/base/Dockerfile.j2 b/docker/base/Dockerfile.j2 index 4d5f4dc1be..bd4ae2ac78 100644 --- a/docker/base/Dockerfile.j2 +++ b/docker/base/Dockerfile.j2 @@ -208,7 +208,9 @@ ENV DEBIAN_FRONTEND noninteractive COPY dpkg_reducing_disk_footprint /etc/dpkg/dpkg.cfg.d/dpkg_reducing_disk_footprint # Need apt-transport-https BEFORE we replace sources.list or apt-get update wont work! -RUN apt-get update && apt-get -y install --no-install-recommends apt-transport-https ca-certificates +RUN apt-get update \ + && apt-get -y install --no-install-recommends apt-transport-https ca-certificates \ + && apt-get clean COPY sources.list.{{ base_distro }} /etc/apt/sources.list COPY apt_preferences.{{ base_distro }} /etc/apt/preferences