We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2571d2 commit 258fd68Copy full SHA for 258fd68
php-fpm/Dockerfile
@@ -22,7 +22,10 @@ RUN docker-php-ext-configure gd \
22
docker-php-ext-install opcache && \
23
docker-php-ext-enable opcache
24
25
-RUN pecl install mongodb && \
+## 因为老项目兼容性问题无法预估,这里没有使用升级到 php-fpm7.1+ 的方式。新项目推荐升级 php-fpm + 最新的 mongodb 扩展
26
+## mongodb 扩展从 1.12.0 开始放弃支持 php7.1,这里指定 1.11.1 版本
27
+#RUN pecl install mongodb && \
28
+RUN pecl install https://pecl.php.net/get/mongodb-1.11.1.tgz && \
29
docker-php-ext-enable mongodb
30
31
RUN docker-php-ext-install pdo_mysql
0 commit comments