Added APCU installation option for the php-worker container

This commit is contained in:
leonschiphol
2023-01-04 16:45:17 +01:00
parent cd1d7014e4
commit 1959f1f931
3 changed files with 14 additions and 0 deletions

View File

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