Added APCU installation option (#1831)

This commit is contained in:
Spyros Sakellaropoulos 2019-01-08 09:30:12 +02:00 committed by Shao Yu-Lung (Allen)
parent 35ffd02b44
commit e6d866b8a6
3 changed files with 12 additions and 0 deletions

View File

@ -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

View File

@ -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 ############################################

View File

@ -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:
###########################################################################