Added APCU installation option for the php-worker container
This commit is contained in:
parent
cd1d7014e4
commit
1959f1f931
|
@ -317,6 +317,7 @@ PHP_WORKER_INSTALL_MEMCACHED=false
|
|||
PHP_WORKER_INSTALL_OCI8=false
|
||||
PHP_WORKER_INSTALL_MSSQL=false
|
||||
PHP_WORKER_INSTALL_PHALCON=false
|
||||
PHP_WORKER_INSTALL_APCU=false
|
||||
PHP_WORKER_INSTALL_SOAP=false
|
||||
PHP_WORKER_INSTALL_ZIP_ARCHIVE=false
|
||||
PHP_WORKER_INSTALL_MYSQL_CLIENT=false
|
||||
|
|
|
@ -340,6 +340,7 @@ services:
|
|||
- INSTALL_OCI8=${PHP_WORKER_INSTALL_OCI8}
|
||||
- INSTALL_MSSQL=${PHP_WORKER_INSTALL_MSSQL}
|
||||
- INSTALL_PHALCON=${PHP_WORKER_INSTALL_PHALCON}
|
||||
- INSTALL_APCU=${PHP_WORKER_INSTALL_APCU}
|
||||
- INSTALL_XLSWRITER=${PHP_WORKER_INSTALL_XLSWRITER}
|
||||
- INSTALL_SOAP=${PHP_WORKER_INSTALL_SOAP}
|
||||
- INSTALL_ZIP_ARCHIVE=${PHP_WORKER_INSTALL_ZIP_ARCHIVE}
|
||||
|
|
|
@ -327,6 +327,18 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
|
|||
php -m | grep -q 'phalcon' \
|
||||
;fi
|
||||
|
||||
# Install APCU ext
|
||||
ARG INSTALL_APCU=false
|
||||
|
||||
RUN if [ ${INSTALL_APCU} = true ]; then \
|
||||
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
|
||||
pecl install -a apcu-4.0.11; \
|
||||
else \
|
||||
pecl install apcu; \
|
||||
fi && \
|
||||
docker-php-ext-enable apcu \
|
||||
;fi
|
||||
|
||||
ARG INSTALL_GHOSTSCRIPT=false
|
||||
RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \
|
||||
apk --update add ghostscript \
|
||||
|
|
Loading…
Reference in New Issue