2017-05-29 14:45:30 +08:00
|
|
|
FROM php:7.1-fpm-alpine
|
2017-05-13 21:33:32 +08:00
|
|
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
2017-03-02 18:23:23 +08:00
|
|
|
|
2017-10-09 04:47:52 +08:00
|
|
|
ENV REDIS_PECL 3.1.4
|
|
|
|
ENV MEMCACHED_PECL 3.0.3
|
|
|
|
ENV APCU_PECL 5.1.8
|
2017-10-21 16:10:27 +08:00
|
|
|
ENV IMAGICK_PECL 3.4.3
|
2017-10-09 04:47:52 +08:00
|
|
|
|
2017-06-12 16:43:11 +08:00
|
|
|
RUN apk add -U --no-cache libxml2-dev \
|
|
|
|
icu-dev \
|
2017-10-09 04:47:52 +08:00
|
|
|
imap-dev \
|
|
|
|
libmemcached-dev \
|
|
|
|
cyrus-sasl-dev \
|
|
|
|
pcre-dev \
|
2017-06-12 16:43:11 +08:00
|
|
|
icu-libs \
|
|
|
|
redis \
|
|
|
|
mysql-client \
|
|
|
|
bash \
|
|
|
|
autoconf \
|
|
|
|
g++ \
|
|
|
|
make \
|
2017-06-13 05:48:56 +08:00
|
|
|
openssl \
|
2017-10-09 04:47:52 +08:00
|
|
|
openssl-dev \
|
|
|
|
samba-client \
|
|
|
|
libpng \
|
|
|
|
libpng-dev \
|
|
|
|
libjpeg-turbo-dev \
|
|
|
|
libwebp-dev \
|
|
|
|
zlib-dev \
|
|
|
|
libxpm-dev \
|
|
|
|
c-client \
|
2017-10-21 16:10:27 +08:00
|
|
|
imagemagick-dev \
|
|
|
|
imagemagick \
|
|
|
|
libtool \
|
2017-11-14 17:44:00 +08:00
|
|
|
gettext-dev \
|
|
|
|
openldap-dev \
|
2017-10-21 16:10:27 +08:00
|
|
|
librsvg \
|
|
|
|
&& pear install channel://pear.php.net/Net_IDNA2-0.2.0 \
|
|
|
|
channel://pear.php.net/Auth_SASL-1.1.0 \
|
|
|
|
Net_IMAP \
|
2017-11-04 03:27:43 +08:00
|
|
|
Net_Sieve \
|
2017-10-21 16:10:27 +08:00
|
|
|
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 \
|
2017-06-12 16:43:11 +08:00
|
|
|
&& pecl clear-cache \
|
|
|
|
&& docker-php-ext-configure intl \
|
2017-11-14 17:44:00 +08:00
|
|
|
&& docker-php-ext-install -j 4 intl gettext ldap sockets soap pdo pdo_mysql xmlrpc gd zip pcntl opcache \
|
2017-10-21 16:10:27 +08:00
|
|
|
&& docker-php-ext-configure imap --with-imap --with-imap-ssl \
|
|
|
|
&& docker-php-ext-install -j 4 imap \
|
|
|
|
&& 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 \
|
2017-10-09 04:47:52 +08:00
|
|
|
&& { \
|
|
|
|
echo 'opcache.enable=1'; \
|
|
|
|
echo 'opcache.enable_cli=1'; \
|
|
|
|
echo 'opcache.interned_strings_buffer=8'; \
|
|
|
|
echo 'opcache.max_accelerated_files=10000'; \
|
|
|
|
echo 'opcache.memory_consumption=128'; \
|
|
|
|
echo 'opcache.save_comments=1'; \
|
|
|
|
echo 'opcache.revalidate_freq=1'; \
|
2017-11-14 17:44:00 +08:00
|
|
|
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
|
2017-10-21 16:10:27 +08:00
|
|
|
|
2017-05-29 14:45:30 +08:00
|
|
|
COPY ./docker-entrypoint.sh /
|
2017-03-02 18:23:23 +08:00
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
2017-05-29 14:45:30 +08:00
|
|
|
CMD ["php-fpm"]
|