From a123e14a048d655d4a0231a9722d6bb2353ca3d0 Mon Sep 17 00:00:00 2001 From: Romain Fluttaz Date: Thu, 25 Oct 2018 20:26:30 +0000 Subject: [PATCH 1/3] Separate pecl install and other ext. --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d499309..c97c62c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,9 +19,10 @@ RUN set -ex; \ \ pecl install apcu; \ pecl install yaml; \ + docker-php-ext-install apcu yaml; \ docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr; \ docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/; \ - docker-php-ext-install gd mysqli opcache zip ldap apcu yaml; \ + docker-php-ext-install gd mysqli opcache zip ldap; \ \ # reset apt-mark's "manual" list so that "purge --auto-remove" will remove all build dependencies apt-mark auto '.*' > /dev/null; \ From 710f6e02a579b69719a354c872738f299b7976e5 Mon Sep 17 00:00:00 2001 From: Romain Fluttaz Date: Thu, 25 Oct 2018 20:32:34 +0000 Subject: [PATCH 2/3] Fix apcu installation with docker-php-ext-enable. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c97c62c..8c97841 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ RUN set -ex; \ \ pecl install apcu; \ pecl install yaml; \ - docker-php-ext-install apcu yaml; \ + docker-php-ext-enable apcu yaml; \ docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr; \ docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/; \ docker-php-ext-install gd mysqli opcache zip ldap; \ From 66053090a8564b5280bafb21771e0b5481d712bd Mon Sep 17 00:00:00 2001 From: Romain Fluttaz Date: Thu, 25 Oct 2018 20:41:55 +0000 Subject: [PATCH 3/3] Fix unzip removed by $savedAptMark. --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8c97841..4a5f420 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,13 @@ FROM php:7.2-apache LABEL maintainer="Andy Miller (@rhukster)" \ maintainer="Romain Fluttaz " +# install dependencies we need +RUN set -ex; \ + \ + apt-get update; \ + apt-get install -y \ + unzip + # install the PHP extensions we need RUN set -ex; \ \