[PHP-FPM] Add imagemagic
parent
f7cd7cc123
commit
04cb033f0a
|
@ -4,6 +4,7 @@ LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
||||||
ENV REDIS_PECL 3.1.4
|
ENV REDIS_PECL 3.1.4
|
||||||
ENV MEMCACHED_PECL 3.0.3
|
ENV MEMCACHED_PECL 3.0.3
|
||||||
ENV APCU_PECL 5.1.8
|
ENV APCU_PECL 5.1.8
|
||||||
|
ENV IMAGICK_PECL 3.4.3
|
||||||
|
|
||||||
RUN apk add -U --no-cache libxml2-dev \
|
RUN apk add -U --no-cache libxml2-dev \
|
||||||
icu-dev \
|
icu-dev \
|
||||||
|
@ -28,15 +29,23 @@ RUN apk add -U --no-cache libxml2-dev \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
libxpm-dev \
|
libxpm-dev \
|
||||||
c-client \
|
c-client \
|
||||||
&& pecl install redis-${REDIS_PECL} memcached-${MEMCACHED_PECL} APCu-${APCU_PECL} \
|
imagemagick-dev \
|
||||||
&& docker-php-ext-enable redis apcu memcached \
|
imagemagick \
|
||||||
|
libtool \
|
||||||
|
librsvg \
|
||||||
|
&& pear install channel://pear.php.net/Net_IDNA2-0.2.0 \
|
||||||
|
channel://pear.php.net/Auth_SASL-1.1.0 \
|
||||||
|
Net_IMAP \
|
||||||
|
NET_SMTP \
|
||||||
|
Mail_mime \
|
||||||
|
&& pecl install redis-${REDIS_PECL} memcached-${MEMCACHED_PECL} APCu-${APCU_PECL} imagick-${IMAGICK_PECL} \
|
||||||
|
&& docker-php-ext-enable redis apcu memcached imagick \
|
||||||
&& pecl clear-cache \
|
&& pecl clear-cache \
|
||||||
&& docker-php-ext-configure intl \
|
&& docker-php-ext-configure intl \
|
||||||
&& docker-php-ext-install intl pdo pdo_mysql xmlrpc gd zip pcntl opcache \
|
&& docker-php-ext-install -j 4 intl pdo pdo_mysql xmlrpc gd zip pcntl opcache \
|
||||||
&& docker-php-ext-configure imap --with-imap --with-imap-ssl \
|
&& docker-php-ext-configure imap --with-imap --with-imap-ssl \
|
||||||
&& docker-php-ext-install imap \
|
&& docker-php-ext-install -j 4 imap \
|
||||||
&& pear install channel://pear.php.net/Net_IDNA2-0.1.1 Auth_SASL2 Net_IMAP NET_SMTP Net_IDNA2 Mail_mime \
|
&& apk del --purge autoconf g++ make libxml2-dev icu-dev imap-dev openssl-dev cyrus-sasl-dev pcre-dev libpng-dev libpng-dev libjpeg-turbo-dev libwebp-dev zlib-dev imagemagick-dev \
|
||||||
&& apk del autoconf g++ make libxml2-dev icu-dev imap-dev openssl-dev cyrus-sasl-dev pcre-dev libpng-dev libpng-dev libjpeg-turbo-dev libwebp-dev zlib-dev \
|
|
||||||
&& { \
|
&& { \
|
||||||
echo 'opcache.enable=1'; \
|
echo 'opcache.enable=1'; \
|
||||||
echo 'opcache.enable_cli=1'; \
|
echo 'opcache.enable_cli=1'; \
|
||||||
|
@ -47,6 +56,7 @@ RUN apk add -U --no-cache libxml2-dev \
|
||||||
echo 'opcache.revalidate_freq=1'; \
|
echo 'opcache.revalidate_freq=1'; \
|
||||||
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
|
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
|
||||||
|
|
||||||
|
|
||||||
COPY ./docker-entrypoint.sh /
|
COPY ./docker-entrypoint.sh /
|
||||||
|
|
||||||
EXPOSE 9000
|
EXPOSE 9000
|
||||||
|
|
Loading…
Reference in New Issue