refactor(Dockerfile): split frontend build commands for clarity

This commit is contained in:
2025-11-10 16:14:04 +08:00
parent a3ff72e575
commit 0457f2edd1

View File

@@ -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