From 818488b8620da0bebe912644f1dc0097839c6566 Mon Sep 17 00:00:00 2001 From: kideny Date: Tue, 27 Sep 2022 09:30:59 +0800 Subject: [PATCH] fixed --- php-fpm/Dockerfile | 19 ++++++++++--------- php-worker/Dockerfile | 19 ++++++++++--------- workspace/Dockerfile | 19 ++++++++++--------- 3 files changed, 30 insertions(+), 27 deletions(-) diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index d726bcc2..94236b68 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -851,15 +851,16 @@ ARG LARADOCK_PHALCON_VERSION ENV LARADOCK_PHALCON_VERSION ${LARADOCK_PHALCON_VERSION} RUN if [ $INSTALL_PHALCON = true ]; then \ - apt-get -yqq install libpcre3-dev; \ - && pecl channel-update pecl.php.net; \ - && echo '' | pecl install phalcon-5.0.0 \ - && mv /usr/local/etc/php/conf.d/phalcon.ini.disable /usr/local/etc/php/conf.d/phalcon.ini \ - && echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - && echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini \ - && docker-php-ext-enable phalcon \ -;fi + apt-get update -yqq \ + && pecl channel-update pecl.php.net \ + && apt-get install -yqq libpcre3-dev; \ + pecl install phalcon-5.0.0; \ + mv /usr/local/etc/php/conf.d/phalcon.ini.disable /usr/local/etc/php/conf.d/phalcon.ini \ + && echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ + && echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ + && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini \ + && docker-php-ext-enable phalcon \ + ;fi ########################################################################### # APCU: diff --git a/php-worker/Dockerfile b/php-worker/Dockerfile index a45cf33c..908fcc57 100644 --- a/php-worker/Dockerfile +++ b/php-worker/Dockerfile @@ -314,15 +314,16 @@ ARG LARADOCK_PHALCON_VERSION ENV LARADOCK_PHALCON_VERSION ${LARADOCK_PHALCON_VERSION} RUN if [ $INSTALL_PHALCON = true ]; then \ - apt-get -yqq install libpcre3-dev; \ - && pecl channel-update pecl.php.net; \ - && echo '' | pecl install phalcon-5.0.0 \ - && mv /usr/local/etc/php/conf.d/phalcon.ini.disable /usr/local/etc/php/conf.d/phalcon.ini; \ - && echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini; \ - && echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini; \ - && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini; \ - && docker-php-ext-enable phalcon \ -;fi + apt-get update -yqq \ + && pecl channel-update pecl.php.net \ + && apt-get install -yqq libpcre3-dev; \ + pecl install phalcon-5.0.0; \ + mv /usr/local/etc/php/conf.d/phalcon.ini.disable /usr/local/etc/php/conf.d/phalcon.ini \ + && echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ + && echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ + && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini \ + && docker-php-ext-enable phalcon \ + ;fi ARG INSTALL_GHOSTSCRIPT=false RUN if [ $INSTALL_GHOSTSCRIPT = true ]; then \ diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 386322ba..cccd8268 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -1322,15 +1322,16 @@ ARG LARADOCK_PHALCON_VERSION ENV LARADOCK_PHALCON_VERSION ${LARADOCK_PHALCON_VERSION} RUN if [ $INSTALL_PHALCON = true ]; then \ - apt-get -yqq install libpcre3-dev; \ - && pecl channel-update pecl.php.net; \ - && echo '' | pecl install phalcon-5.0.0 ; \ - && mv /usr/local/etc/php/conf.d/phalcon.ini.disable /usr/local/etc/php/conf.d/phalcon.ini \ - && echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - && echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ - && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini \ - && docker-php-ext-enable phalcon \ -;fi + apt-get update -yqq \ + && pecl channel-update pecl.php.net \ + && apt-get install -yqq libpcre3-dev; \ + pecl install phalcon-5.0.0; \ + mv /usr/local/etc/php/conf.d/phalcon.ini.disable /usr/local/etc/php/conf.d/phalcon.ini \ + && echo "extension=psr.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ + && echo "extension=phalcon.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini \ + && ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/phalcon.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/30-phalcon.ini \ + && docker-php-ext-enable phalcon \ + ;fi ########################################################################### USER root