New Dockerfile

This commit is contained in:
andryyy 2017-05-14 22:11:12 +02:00
parent d06e938d0e
commit 861ade77ab

View File

@ -1,24 +1,15 @@
FROM php:7.1-fpm FROM php:7.1-fpm-alpine
LABEL maintainer "Andre Peters <andre.peters@servercow.de>" LABEL maintainer "Andre Peters <andre.peters@servercow.de>"
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \ RUN apk add -U --no-cache libxml2-dev icu-dev icu-libs redis mysql-client bash autoconf g++ make openssl
g++ \ RUN pecl install redis && pecl clear-cache
libicu-dev \
libidn11-dev \
libxml2-dev \
mysql-client \
redis-tools \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure intl RUN docker-php-ext-configure intl
RUN docker-php-ext-install intl pdo pdo_mysql xmlrpc RUN docker-php-ext-install intl pdo pdo_mysql xmlrpc
RUN docker-php-ext-enable redis
RUN pear install channel://pear.php.net/Net_IDNA2-0.1.1 Auth_SASL Net_IMAP NET_SMTP Net_IDNA2 Mail_mime RUN pear install channel://pear.php.net/Net_IDNA2-0.1.1 Auth_SASL Net_IMAP NET_SMTP Net_IDNA2 Mail_mime
RUN pecl install -o -f redis \ RUN apk del autoconf g++ make libxml2-dev icu-dev
&& rm -rf /tmp/pear \
&& docker-php-ext-enable redis
COPY ./docker-entrypoint.sh / COPY ./docker-entrypoint.sh /