From 08e7450f46fb50b20dfdb3de6fadb79856d106ac Mon Sep 17 00:00:00 2001 From: "Shao Yu-Lung (Allen)" Date: Tue, 23 Mar 2021 00:11:08 +0800 Subject: [PATCH] fix typo --- workspace/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 1da47888..3d534f52 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -547,7 +547,8 @@ RUN if [ ${INSTALL_PHPREDIS} = true ]; then \ ARG INSTALL_SWOOLE=false -RUN if [ ${INSTALL_SWOOLE} = true ]; then \ +RUN set -eux; \ + if [ ${INSTALL_SWOOLE} = true ]; then \ # Install Php Swoole Extension if [ $(php -r "echo PHP_VERSION_ID - PHP_RELEASE_VERSION;") = "50600" ]; then \ pecl install swoole-2.0.10; \ @@ -558,11 +559,10 @@ RUN if [ ${INSTALL_SWOOLE} = true ]; then \ else \ pecl install swoole; \ fi; \ - fi; \ - echo "extension=swoole.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini && \ - ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-swoole.ini \ - && php -m | grep -q 'swoole' \ -;fi + echo "extension=swoole.so" >> /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini; \ + ln -s /etc/php/${LARADOCK_PHP_VERSION}/mods-available/swoole.ini /etc/php/${LARADOCK_PHP_VERSION}/cli/conf.d/20-swoole.ini; \ + php -m | grep -q 'swoole'; \ + fi ########################################################################### # Taint EXTENSION