From e6d866b8a62370467b7b8c974d4e8b59aa569c8b Mon Sep 17 00:00:00 2001 From: Spyros Sakellaropoulos Date: Tue, 8 Jan 2019 09:30:12 +0200 Subject: [PATCH] Added APCU installation option (#1831) --- docker-compose.yml | 1 + env-example | 1 + php-fpm/Dockerfile | 10 ++++++++++ 3 files changed, 12 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 09bb188..ba0a365 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -157,6 +157,7 @@ services: - INSTALL_CALENDAR=${PHP_FPM_INSTALL_CALENDAR} - INSTALL_FAKETIME=${PHP_FPM_INSTALL_FAKETIME} - INSTALL_IONCUBE=${PHP_FPM_INSTALL_IONCUBE} + - INSTALL_APCU=${PHP_FPM_INSTALL_APCU} - INSTALL_YAML=${PHP_FPM_INSTALL_YAML} volumes: - ./php-fpm/php${PHP_VERSION}.ini:/usr/local/etc/php/php.ini diff --git a/env-example b/env-example index af6e1a9..44fdcb9 100644 --- a/env-example +++ b/env-example @@ -163,6 +163,7 @@ PHP_FPM_INSTALL_CALENDAR=false PHP_FPM_INSTALL_FAKETIME=false PHP_FPM_INSTALL_IONCUBE=false PHP_FPM_FAKETIME=-0 +PHP_FPM_INSTALL_APCU=false PHP_FPM_INSTALL_YAML=false ### PHP_WORKER ############################################ diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 3bd250d..0a3e57a 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -539,6 +539,16 @@ RUN if [ $INSTALL_PHALCON = true ]; then \ && rm -rf /tmp/cphalcon* \ ;fi +########################################################################### +# APCU: +########################################################################### + +ARG INSTALL_APCU=false + +RUN if [ ${INSTALL_APCU} = true ]; then \ + pecl install apcu && \ + docker-php-ext-enable apcu \ + ########################################################################### # YAML: ###########################################################################