From acac6eb229188e4ebf6205d9b8c2b1ec02ec5688 Mon Sep 17 00:00:00 2001 From: "Shao Yu-Lung (Allen)" Date: Thu, 10 Jan 2019 21:50:59 +0800 Subject: [PATCH] fix PHP Warning: PHP Startup: Unable to load dynamic library 'phalcon.so' (#1947) when install APCu and no install Phalcon. --- php-fpm/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 641d0eab..aa3b58a0 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -530,18 +530,19 @@ ARG INSTALL_PHALCON=false ARG LARADOCK_PHALCON_VERSION ENV LARADOCK_PHALCON_VERSION ${LARADOCK_PHALCON_VERSION} +# Copy phalcon configration +COPY ./phalcon.ini /usr/local/etc/php/conf.d/phalcon.ini.disable + RUN if [ $INSTALL_PHALCON = true ]; then \ apt-get update && apt-get install -y unzip libpcre3-dev gcc make re2c \ && curl -L -o /tmp/cphalcon.zip https://github.com/phalcon/cphalcon/archive/v${LARADOCK_PHALCON_VERSION}.zip \ && unzip -d /tmp/ /tmp/cphalcon.zip \ && cd /tmp/cphalcon-${LARADOCK_PHALCON_VERSION}/build \ && ./install \ + && mv /usr/local/etc/php/conf.d/phalcon.ini.disable /usr/local/etc/php/conf.d/phalcon.ini \ && rm -rf /tmp/cphalcon* \ ;fi -# Copy phalcon configration -COPY ./phalcon.ini /usr/local/etc/php/conf.d/phalcon.ini - ########################################################################### # APCU: ###########################################################################