Build gd with jpeg support

This commit is contained in:
Pierre Jaury 2018-06-16 12:23:13 +02:00
parent 862e9231d1
commit a70ec47ef1

View file

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