Merge pull request #3339 from leonschiphol/add_apcu_to_workspace

Add APCU installation option for the workspace and php-worker containers
This commit is contained in:
Shao Yu-Lung (Allen)
2023-03-30 07:54:23 +08:00
committed by GitHub
4 changed files with 31 additions and 0 deletions

View File

@ -1339,6 +1339,21 @@ RUN if [ $INSTALL_PHALCON = true ]; then \
php -m | grep -q 'phalcon' \
;fi
###########################################################################
# APCU:
###########################################################################
ARG INSTALL_APCU=false
RUN if [ ${INSTALL_APCU} = true ]; then \
apt-get update -yqq \
&& pecl channel-update pecl.php.net; \
pecl install apcu; \
echo "extension=apcu.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini; \
ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/apcu.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/50-apcu.ini; \
php -m | grep -q 'apcu' \
;fi
###########################################################################
USER root