From c0619a5b6bc1dad392f387df6012cfa389bccd33 Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 12 Jun 2017 10:43:11 +0200 Subject: [PATCH] Less layers --- data/Dockerfiles/php-fpm/Dockerfile | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/data/Dockerfiles/php-fpm/Dockerfile b/data/Dockerfiles/php-fpm/Dockerfile index 514710c0..73b94e44 100644 --- a/data/Dockerfiles/php-fpm/Dockerfile +++ b/data/Dockerfiles/php-fpm/Dockerfile @@ -1,13 +1,24 @@ FROM php:7.1-fpm-alpine LABEL maintainer "Andre Peters " -RUN apk add -U --no-cache libxml2-dev icu-dev icu-libs redis mysql-client bash autoconf g++ make openssl -RUN pecl install redis && pecl clear-cache -RUN docker-php-ext-configure intl -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 apk del autoconf g++ make libxml2-dev icu-dev +RUN apk add -U --no-cache libxml2-dev \ + icu-dev \ + icu-libs \ + redis \ + mysql-client \ + bash \ + autoconf \ + g++ \ + make \ + openssl + +RUN pecl install redis \ + && pecl clear-cache \ + && docker-php-ext-configure intl \ + && docker-php-ext-install intl pdo pdo_mysql xmlrpc \ + && docker-php-ext-enable redis \ + && pear install channel://pear.php.net/Net_IDNA2-0.1.1 Auth_SASL Net_IMAP NET_SMTP Net_IDNA2 Mail_mime \ + && apk del autoconf g++ make libxml2-dev icu-dev COPY ./docker-entrypoint.sh /