fix: [FL-126] 修复 web Dockerfile 构建失败问题
- 从 deps 阶段复制 web/node_modules 到 builder 阶段 - 复制根目录 package.json 以支持 workspace 命令 - 使用 npm run build:web 替代直接在 web 目录运行 build - 移除 WORKDIR /app/web,保持在根目录执行构建 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
+3
-2
@@ -18,9 +18,10 @@ ENV NEXT_PUBLIC_API_BASE_URL=${NEXT_PUBLIC_API_BASE_URL}
|
||||
ENV NEXT_PUBLIC_APP_BASE_PATH=${NEXT_PUBLIC_APP_BASE_PATH}
|
||||
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY --from=deps /app/web/node_modules ./web/node_modules
|
||||
COPY package.json package-lock.json ./
|
||||
COPY web ./web
|
||||
WORKDIR /app/web
|
||||
RUN npm run build
|
||||
RUN npm run build:web
|
||||
|
||||
FROM ${NODE_BASE_IMAGE} AS runner
|
||||
WORKDIR /app
|
||||
|
||||
Reference in New Issue
Block a user