fix(build): 构建阶段补回 unzip(composer 解压 dist 包要用)
上一个提交里我把它当成"只有拉上游 archive 才需要"删掉了,结果 composer install 直接失败:"The zip extension and unzip/7z commands are both missing, skipping." —— 现在源码是 vendored 的、不再解压 archive,但 composer 装依赖仍然需要它。顺手加 git, 给少数走 source 安装的包兜底。CI 已实测复现,这个提交后应恢复正常。
This commit is contained in:
1 parent
7c3188e25a
commit
d7fed9a125
1 file changed
+4
-1
+4
-1
@@ -35,8 +35,11 @@ ARG FORK_SHA=unknown
|
||||
WORKDIR /build
|
||||
|
||||
# 安装必要的依赖
|
||||
# curl —— 装 composer
|
||||
# unzip —— composer 解压 dist 包要用(去掉它会导致 composer install 直接失败:CI 实测踩过)
|
||||
# git —— 部分包会走 source 安装时的兜底
|
||||
RUN apt-get update && \
|
||||
apt-get install -y curl && \
|
||||
apt-get install -y curl unzip git && \
|
||||
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
|
||||
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
|
||||
Reference in new issue
Block a user