ci: 修正dockerfile

This commit is contained in:
mazxd
2025-04-05 18:57:23 +08:00
parent 077ea6f5d5
commit 16f7b398aa
+3 -1
View File
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y \
unzip
# 安装PHP扩展
RUN docker-php-ext-install pdo_mysql mbstring exif pcntl bcmath gd
RUN docker-php-ext-install pdo_mysql mysqli mbstring exif pcntl bcmath gd
# 安装Composer
COPY --from=composer:1.10 /usr/bin/composer /usr/bin/composer
@@ -44,6 +44,8 @@ RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html \
&& chmod -R 777 /var/www/html/runtime
# 升级 Composer 到版本 2
RUN composer self-update --2
# 配置git安全目录
RUN git config --global --add safe.directory /var/www/html