From d395738917c72b7696106cdd4848be91a2170e9e Mon Sep 17 00:00:00 2001 From: Cabillot Julien Date: Fri, 18 May 2018 12:04:44 -0400 Subject: [PATCH] Uniformisation avec les autres dockers ubuntu --- Dockerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4332a2e..4cf9590 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,12 +5,14 @@ LABEL maintainer="Julien Cabillot " # Nécessaire pour le git clone plus loin WORKDIR "/var/www" -RUN apt-get -qq update && \ - apt-get -qq --yes install libpng12-dev git && \ +RUN export DEBIAN_FRONTEND="noninteractive" && \ + export BUILD_PACKAGES="libpng12-dev git" && \ + apt-get -qq update && \ + apt-get -qq --yes install ${BUILD_PACKAGES} && \ docker-php-ext-install gd && \ rmdir "/var/www/html" && \ git clone "https://github.com/blueimp/jQuery-File-Upload.git" "/var/www/html" && \ - apt-get -qq --yes remove --purge libpng12-dev && \ + apt-get -qq --yes remove --purge ${BUILD_PACKAGES} && \ apt-get -qq --yes autoremove --purge && \ apt-get -qq --yes clean all && \ rm -rf "/usr/share/doc/"* \ @@ -18,7 +20,7 @@ RUN apt-get -qq update && \ "/var/lib/apt/lists/"* \ "/usr/src/"* \ "/var/cache/"* \ - "/var/log/"{apt/*,dpkg.log} \ + "/var/log/"{apt/*,dpkg.log} \ "/var/www/html" \ "/tmp/"*