Dockerfile: User && instead of ;

We don't want to continue if any of the commands fails.
&& only executes the next command on exitocde 0.
This commit is contained in:
Felix Breidenstein 2018-02-20 10:58:07 +01:00
parent 9c132cd839
commit c9b0398df0
1 changed files with 3 additions and 3 deletions

View File

@ -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