From 16f7b398aa9594ff5e9f9ca84f6ee79699f3b5ad Mon Sep 17 00:00:00 2001 From: mazxd Date: Sat, 5 Apr 2025 18:57:23 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BF=AE=E6=AD=A3dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index fafaf65..c5d95ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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,7 +44,9 @@ RUN chown -R www-data:www-data /var/www/html \ && chmod -R 755 /var/www/html \ && chmod -R 777 /var/www/html/runtime -# 配置git安全目录 +# 升级 Composer 到版本 2 +RUN composer self-update --2 + # 配置git安全目录 RUN git config --global --add safe.directory /var/www/html # 切换到www-data用户并安装依赖