refactor(Dockerfile): split frontend build commands for clarity
This commit is contained in:
@@ -24,8 +24,11 @@ RUN if [ "$BUILD_MODE" = "flask" ]; then \
|
|||||||
cp .env.production .env; \
|
cp .env.production .env; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 同时构建两个前端(根 Vite 应用 + ragflow_web Umi 应用)
|
# 构建根 Vite 应用
|
||||||
RUN pnpm -r --filter ./ --filter ragflow_web run build
|
RUN pnpm --filter ./ run build
|
||||||
|
|
||||||
|
# 构建 ragflow_web 前端(Umi 应用)
|
||||||
|
RUN pnpm --filter ragflow_web run build
|
||||||
|
|
||||||
# 生产阶段 - nginx
|
# 生产阶段 - nginx
|
||||||
FROM nginx:alpine AS production
|
FROM nginx:alpine AS production
|
||||||
|
|||||||
Reference in New Issue
Block a user