mailcow/data/Dockerfiles/phpfpm/Dockerfile

89 lines
2.0 KiB
Docker
Raw Normal View History

FROM php:7.3-fpm-alpine3.10
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
2017-03-02 11:23:23 +01:00
2019-06-05 06:56:58 +02:00
ENV APCU_PECL 5.1.17
ENV IMAGICK_PECL 3.4.4
#ENV MAILPARSE_PECL 3.0.2
ENV MEMCACHED_PECL 3.1.4
ENV REDIS_PECL 5.0.2
RUN apk add -U --no-cache autoconf \
bash \
c-client \
cyrus-sasl-dev \
freetype \
freetype-dev \
g++ \
git \
gettext-dev \
icu-dev \
icu-libs \
imagemagick \
imagemagick-dev \
imap-dev \
2018-12-10 13:22:25 +01:00
jq \
libjpeg-turbo \
libjpeg-turbo-dev \
libmemcached-dev \
libpng \
libpng-dev \
libressl \
libressl-dev \
2017-10-21 10:10:27 +02:00
librsvg \
libtool \
libwebp-dev \
libxml2-dev \
libxpm-dev \
libzip-dev \
make \
mysql-client \
openldap-dev \
pcre-dev \
2018-04-26 22:04:59 +02:00
re2c \
redis \
samba-client \
zlib-dev \
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 \
&& pecl clear-cache \
&& docker-php-ext-configure intl \
2019-06-10 13:39:53 +02:00
&& docker-php-ext-configure exif \
&& docker-php-ext-configure gd \
--with-gd \
--with-freetype-dir=/usr/include/ \
--with-png-dir=/usr/include/ \
--with-jpeg-dir=/usr/include/ \
2019-06-10 13:39:53 +02:00
&& docker-php-ext-install -j 4 exif gd gettext intl ldap opcache pcntl pdo pdo_mysql soap sockets xmlrpc zip \
2017-10-21 10:10:27 +02:00
&& docker-php-ext-configure imap --with-imap --with-imap-ssl \
&& docker-php-ext-install -j 4 imap \
2019-09-28 19:58:40 +02:00
&& curl --silent --show-error https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& chmod +x /usr/local/bin/composer \
&& 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 10:10:27 +02:00
COPY ./docker-entrypoint.sh /
2017-03-02 11:23:23 +01:00
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["php-fpm"]