Update Dockerfile

This commit is contained in:
Kenny Yang authored and GitHub committed 2024-05-28 11:42:46 +08:00
1 parent 7552f74b91
commit c39a0e3d4d
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ RUN apt-get update && apt upgrade -y && apt-get install -y \
# 安装 mcrypt 扩展 # 安装 mcrypt 扩展
RUN if [ "${PHP_VERSION}" = "8.2" ]; then \ RUN if [ "${PHP_VERSION}" = "8.2" ]; then \
pecl install mcrypt-1.0.7 && docker-php-ext-enable mcrypt \ pecl install mcrypt-1.0.7 && docker-php-ext-enable mcrypt; \
elif [ "${PHP_VERSION}" = "7.4" ]; then \ elif [ "${PHP_VERSION}" = "7.4" ]; then \
pecl install mcrypt-1.0.4 && docker-php-ext-enable mcrypt; \ pecl install mcrypt-1.0.4 && docker-php-ext-enable mcrypt; \
fi fi