From afed0c225dc418667e82893b145e14dca68a4d8d Mon Sep 17 00:00:00 2001 From: Cabillot Julien Date: Mon, 14 May 2018 13:57:10 -0400 Subject: [PATCH] fix cleanup --- Dockerfile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1a3eeeb..4332a2e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,18 +5,20 @@ LABEL maintainer="Julien Cabillot " # Nécessaire pour le git clone plus loin WORKDIR "/var/www" -RUN apt-get update && \ - apt-get -y install libpng12-dev git && \ +RUN apt-get -qq update && \ + apt-get -qq --yes install libpng12-dev git && \ docker-php-ext-install gd && \ - apt-get clean all && \ rmdir "/var/www/html" && \ git clone "https://github.com/blueimp/jQuery-File-Upload.git" "/var/www/html" && \ - apt-get -y autoremove --purge git libpng12-dev && \ - apt-get -y clean all && \ - rm -rf "/usr/share/doc/*" \ - "/var/cache/*" \ - "/var/lib/apt/lists/*" \ - "/usr/src/*" \ - "/var/cache/*" \ + apt-get -qq --yes remove --purge libpng12-dev && \ + apt-get -qq --yes autoremove --purge && \ + apt-get -qq --yes clean all && \ + rm -rf "/usr/share/doc/"* \ + "/var/cache/"* \ + "/var/lib/apt/lists/"* \ + "/usr/src/"* \ + "/var/cache/"* \ "/var/log/"{apt/*,dpkg.log} \ - "/tmp/*" + "/var/www/html" \ + "/tmp/"* +