build: install and link subpackage dependencies after copying workspace

This commit is contained in:
2025-11-15 00:46:07 +08:00
parent 94ff0c13f7
commit b75a4e4564

View File

@@ -13,6 +13,8 @@ RUN npm install -g pnpm
# 复制源代码
COPY . .
# 复制完工作空间后,安装并链接所有子包依赖
RUN pnpm -r install
# 设置环境文件(用于根应用的构建)
RUN if [ "$BUILD_MODE" = "flask" ]; then \