mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-27 07:23:17 +00:00
Build gd with jpeg support
This commit is contained in:
parent
862e9231d1
commit
a70ec47ef1
1 changed files with 7 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue