From b7befcd6807fd9fb9ed668bd73c4e016417a3379 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Thu, 3 Jun 2021 22:00:29 +0800 Subject: [PATCH] Remove additional apt-get clean in Dockerfile Reference: - https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#apt-get > Official Debian and Ubuntu images automatically run `apt-get clean`, > so explicit invocation is not required. --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b861dc43..73293311 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,7 +27,6 @@ ADD . kvazaar # data in the image. RUN apt-get update \ && apt-get install -y $REQUIRED_PACKAGES \ - && apt-get clean \ && cd kvazaar \ && ./autogen.sh \ && ./configure --disable-shared \ @@ -35,7 +34,6 @@ RUN apt-get update \ && make install \ && AUTOINSTALLED_PACKAGES=`apt-mark showauto` \ && apt-get remove --purge --force-yes -y $REQUIRED_PACKAGES $AUTOINSTALLED_PACKAGES \ - && apt-get clean autoclean \ && apt-get autoremove -y \ && rm -rf /var/lib/{apt,dpkg,cache,log}/