2019-07-20 21:15:39 +08:00
|
|
|
FROM php:7.3-fpm-alpine3.10
|
2017-05-13 21:33:32 +08:00
|
|
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
2017-03-02 18:23:23 +08:00
|
|
|
|
2019-06-05 12:56:58 +08:00
|
|
|
ENV APCU_PECL 5.1.17
|
|
|
|
ENV IMAGICK_PECL 3.4.4
|
2019-02-05 06:46:45 +08:00
|
|
|
#ENV MAILPARSE_PECL 3.0.2
|
2018-12-27 17:47:00 +08:00
|
|
|
ENV MEMCACHED_PECL 3.1.3
|
2019-07-20 21:15:39 +08:00
|
|
|
ENV REDIS_PECL 5.0.1
|
2017-10-09 04:47:52 +08:00
|
|
|
|
2018-04-26 19:51:55 +08:00
|
|
|
RUN apk add -U --no-cache autoconf \
|
|
|
|
bash \
|
|
|
|
c-client \
|
|
|
|
cyrus-sasl-dev \
|
2018-02-19 03:59:32 +08:00
|
|
|
freetype \
|
|
|
|
freetype-dev \
|
2018-04-26 19:51:55 +08:00
|
|
|
g++ \
|
2019-02-05 06:46:45 +08:00
|
|
|
git \
|
2017-11-14 17:44:00 +08:00
|
|
|
gettext-dev \
|
2018-04-26 19:51:55 +08:00
|
|
|
icu-dev \
|
|
|
|
icu-libs \
|
|
|
|
imagemagick \
|
|
|
|
imagemagick-dev \
|
|
|
|
imap-dev \
|
2018-12-10 20:22:25 +08:00
|
|
|
jq \
|
2018-04-26 19:51:55 +08:00
|
|
|
libjpeg-turbo \
|
|
|
|
libjpeg-turbo-dev \
|
|
|
|
libmemcached-dev \
|
|
|
|
libpng \
|
|
|
|
libpng-dev \
|
|
|
|
libressl \
|
|
|
|
libressl-dev \
|
2017-10-21 16:10:27 +08:00
|
|
|
librsvg \
|
2018-04-26 19:51:55 +08:00
|
|
|
libtool \
|
|
|
|
libwebp-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
libxpm-dev \
|
2019-02-05 06:46:45 +08:00
|
|
|
libzip-dev \
|
2018-04-26 19:51:55 +08:00
|
|
|
make \
|
|
|
|
mysql-client \
|
|
|
|
openldap-dev \
|
|
|
|
pcre-dev \
|
2018-04-27 04:04:59 +08:00
|
|
|
re2c \
|
2018-04-26 19:51:55 +08:00
|
|
|
redis \
|
|
|
|
samba-client \
|
|
|
|
zlib-dev \
|
2019-02-05 06:46:45 +08:00
|
|
|
tzdata \
|
|
|
|
&& git clone https://github.com/php/pecl-mail-mailparse \
|
|
|
|
&& cd pecl-mail-mailparse \
|
|
|
|
&& pecl install package.xml \
|
|
|
|
&& cd .. \
|
|
|
|
&& rm -r pecl-mail-mailparse \
|
|
|
|
&& pecl install redis-${REDIS_PECL} memcached-${MEMCACHED_PECL} APCu-${APCU_PECL} imagick-${IMAGICK_PECL} \
|
|
|
|
&& docker-php-ext-enable apcu imagick memcached mailparse redis \
|
2018-04-26 19:51:55 +08:00
|
|
|
&& pecl clear-cache \
|
|
|
|
&& docker-php-ext-configure intl \
|
2019-06-10 19:39:53 +08:00
|
|
|
&& docker-php-ext-configure exif \
|
2018-02-19 03:59:32 +08:00
|
|
|
&& docker-php-ext-configure gd \
|
2018-04-26 19:51:55 +08:00
|
|
|
--with-gd \
|
|
|
|
--enable-gd-native-ttf \
|
|
|
|
--with-freetype-dir=/usr/include/ \
|
|
|
|
--with-png-dir=/usr/include/ \
|
|
|
|
--with-jpeg-dir=/usr/include/ \
|
2019-06-10 19:39:53 +08:00
|
|
|
&& docker-php-ext-install -j 4 exif gd gettext intl ldap opcache pcntl pdo pdo_mysql soap sockets xmlrpc zip \
|
2017-10-21 16:10:27 +08:00
|
|
|
&& docker-php-ext-configure imap --with-imap --with-imap-ssl \
|
2018-04-26 19:51:55 +08:00
|
|
|
&& docker-php-ext-install -j 4 imap \
|
2019-09-29 01:58:40 +08:00
|
|
|
&& curl --silent --show-error https://getcomposer.org/installer | php \
|
|
|
|
&& mv composer.phar /usr/local/bin/composer \
|
|
|
|
&& chmod +x /usr/local/bin/composer \
|
2018-04-26 19:51:55 +08:00
|
|
|
&& apk del --purge autoconf \
|
|
|
|
cyrus-sasl-dev \
|
|
|
|
freetype-dev \
|
|
|
|
g++ \
|
|
|
|
icu-dev \
|
|
|
|
imagemagick-dev \
|
|
|
|
imap-dev \
|
|
|
|
libjpeg-turbo-dev \
|
|
|
|
libpng-dev \
|
|
|
|
libressl-dev \
|
|
|
|
libwebp-dev \
|
|
|
|
libxml2-dev \
|
|
|
|
make \
|
|
|
|
pcre-dev \
|
|
|
|
zlib-dev
|
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
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
2019-10-18 18:01:47 +08:00
|
|
|
|
2017-05-29 14:45:30 +08:00
|
|
|
CMD ["php-fpm"]
|