This commit is contained in:
Shao Yu-Lung (Allen) 2021-10-07 23:32:57 +08:00
parent 4439c16acd
commit 67b7d18607
1 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ ARG INSTALL_MONGO=false
RUN if [ ${INSTALL_MONGO} = true ]; then \
# Install the mongodb extension
if [ $(php -r "echo PHP_MAJOR_VERSION;") = "5" ]; then \
pecl install mongo && \
pecl install mongo; \
docker-php-ext-enable mongo; \
php -m | grep -oiE '^mongo$'; \
else \
@ -366,7 +366,7 @@ RUN if [ ${INSTALL_MONGO} = true ]; then \
else \
pecl install mongodb; \
fi; \
docker-php-ext-enable mongodb \
docker-php-ext-enable mongodb; \
php -m | grep -oiE '^mongodb$'; \
fi; \
fi