From a70ec47ef1ccad10d7b5c255bc2eb08122417159 Mon Sep 17 00:00:00 2001 From: Pierre Jaury Date: Sat, 16 Jun 2018 12:23:13 +0200 Subject: [PATCH] Build gd with jpeg support --- docker/Dockerfile.apache | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/docker/Dockerfile.apache b/docker/Dockerfile.apache index 0a95c2f81..16f80aa6d 100644 --- a/docker/Dockerfile.apache +++ b/docker/Dockerfile.apache @@ -5,8 +5,14 @@ ARG COMPOSER_CHECKSUM="67bebe9df9866a795078bb2cf21798d8b0214f2e0b2fd81f2e907a8ef RUN apt-get update \ && apt-get install -y --no-install-recommends libmagickwand-dev git \ + libfreetype6-dev libjpeg62-turbo-dev libpng-dev libxpm-dev libvpx-dev \ && docker-php-ext-install pdo_mysql pcntl gd \ && pecl install imagick \ + && docker-php-ext-configure gd \ + --with-freetype-dir=/usr/lib/x86_64-linux-gnu/ \ + --with-jpeg-dir=/usr/lib/x86_64-linux-gnu/ \ + --with-xpm-dir=/usr/lib/x86_64-linux-gnu/ \ + --with-vpx-dir=/usr/lib/x86_64-linux-gnu/ \ && docker-php-ext-enable imagick pcntl imagick \ && a2enmod rewrite \ && curl -LsS https://getcomposer.org/download/${COMPOSER_VERSION}/composer.phar -o /tmp/composer.phar \ @@ -21,7 +27,7 @@ COPY . /var/www/ WORKDIR /var/www/ RUN find storage -name .gitignore -exec rm {} + \ - && chown -R www-data:www-data /var/www/storage + && chown -R www-data:www-data /var/www/storage \ && cp -r storage storage.skel \ && cp docker/env .env \ && composer install --prefer-source --no-interaction \