From c9b0398df004ba59ef5db5da34767790c9b032c8 Mon Sep 17 00:00:00 2001 From: Felix Breidenstein Date: Tue, 20 Feb 2018 10:58:07 +0100 Subject: [PATCH] Dockerfile: User && instead of ; We don't want to continue if any of the commands fails. && only executes the next command on exitocde 0. --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b0121340..535d826e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,10 @@ RUN apt-get update && apt-get install -y \ libpng12-dev \ wget \ zip \ - unzip; \ + unzip && \ # We install and enable php-gd - docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/; \ - docker-php-ext-install -j$(nproc) gd; \ + docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ &&\ + docker-php-ext-install -j$(nproc) gd && \ # We enable Apache's mod_rewrite a2enmod rewrite