ci: 修正dockerfile
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user