From 0122eb7ffd58d8edf03a27b6681d4e7f7bd5aff7 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Fri, 3 Nov 2017 08:42:34 +0100 Subject: [PATCH] =?UTF-8?q?m=C3=A9nage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 889392e..4dbf0bc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,11 +9,14 @@ RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \ docker-php-ext-install gd && \ apt-get clean all && \ a2enmod headers && \ - rm -rf "/var/www/html" && \ - git clone "https://github.com/blueimp/jQuery-File-Upload.git" "html" && \ rm -rf "/usr/share/doc/*" \ - "/var/cache/*" \ - "/var/lib/apt/lists/*" + "/var/cache/*" \ + "/var/lib/apt/lists/*" \ + "/usr/src/*" \ + "/var/cache/*" \ + "/var/log/"{apt/*,dpkg.log} \ + "/var/www/html" && \ + git clone "https://github.com/blueimp/jQuery-File-Upload.git" "html" RUN chown -R "www-data":"www-data" "/var/www/html"