build: install and link subpackage dependencies after copying workspace
This commit is contained in:
@@ -13,6 +13,8 @@ RUN npm install -g pnpm
|
||||
|
||||
# 复制源代码
|
||||
COPY . .
|
||||
# 复制完工作空间后,安装并链接所有子包依赖
|
||||
RUN pnpm -r install
|
||||
|
||||
# 设置环境文件(用于根应用的构建)
|
||||
RUN if [ "$BUILD_MODE" = "flask" ]; then \
|
||||
|
||||
Reference in New Issue
Block a user