diff --git a/Dockerfile b/Dockerfile index 1c1a79b..c87b9a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,8 +24,11 @@ RUN if [ "$BUILD_MODE" = "flask" ]; then \ cp .env.production .env; \ fi -# 同时构建两个前端(根 Vite 应用 + ragflow_web Umi 应用) -RUN pnpm -r --filter ./ --filter ragflow_web run build +# 构建根 Vite 应用 +RUN pnpm --filter ./ run build + +# 构建 ragflow_web 前端(Umi 应用) +RUN pnpm --filter ragflow_web run build # 生产阶段 - nginx FROM nginx:alpine AS production