2017-03-02 18:23:23 +08:00
|
|
|
FROM php:7.1-fpm
|
2017-05-13 21:33:32 +08:00
|
|
|
LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
|
2017-03-02 18:23:23 +08:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
2017-05-13 21:52:16 +08:00
|
|
|
RUN apt-get update && apt-get install -y \
|
2017-05-08 21:35:24 +08:00
|
|
|
g++ \
|
2017-05-13 22:07:06 +08:00
|
|
|
libicu-dev \
|
2017-05-08 21:35:24 +08:00
|
|
|
libidn11-dev \
|
|
|
|
libxml2-dev \
|
2017-05-13 21:52:16 +08:00
|
|
|
mysql-client \
|
2017-05-13 22:07:06 +08:00
|
|
|
redis-tools \
|
|
|
|
zlib1g-dev \
|
2017-05-13 21:52:16 +08:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2017-03-02 18:23:23 +08:00
|
|
|
|
|
|
|
RUN docker-php-ext-configure intl
|
|
|
|
RUN docker-php-ext-install intl pdo pdo_mysql xmlrpc
|
|
|
|
RUN pear install channel://pear.php.net/Net_IDNA2-0.1.1 Auth_SASL Net_IMAP NET_SMTP Net_IDNA2 Mail_mime
|
2017-05-05 16:34:31 +08:00
|
|
|
RUN pecl install -o -f redis \
|
|
|
|
&& rm -rf /tmp/pear \
|
|
|
|
&& docker-php-ext-enable redis
|
2017-03-02 18:23:23 +08:00
|
|
|
|
|
|
|
COPY ./docker-entrypoint.sh /
|
|
|
|
|
|
|
|
EXPOSE 9000
|
|
|
|
|
|
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
|
|
CMD ["php-fpm"]
|