ci: 修正dockerfile
This commit is contained in:
+4
-2
@@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y \
|
|||||||
unzip
|
unzip
|
||||||
|
|
||||||
# 安装PHP扩展
|
# 安装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
|
# 安装Composer
|
||||||
COPY --from=composer:1.10 /usr/bin/composer /usr/bin/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 755 /var/www/html \
|
||||||
&& chmod -R 777 /var/www/html/runtime
|
&& 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
|
RUN git config --global --add safe.directory /var/www/html
|
||||||
|
|
||||||
# 切换到www-data用户并安装依赖
|
# 切换到www-data用户并安装依赖
|
||||||
|
|||||||
Reference in New Issue
Block a user