refactor(Dockerfile): reorganize build steps and remove redundant copy

This commit is contained in:
2025-11-10 16:27:27 +08:00
parent e392062a4b
commit 21d46e7440

View File

@@ -8,9 +8,6 @@ ENV RAGFLOW_BASE=${RAGFLOW_BASE}
WORKDIR /app
# 复制包管理文件(包含工作空间定义)
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
# 安装 pnpm 和依赖(工作空间)
RUN npm install -g pnpm
@@ -27,6 +24,10 @@ RUN if [ "$BUILD_MODE" = "flask" ]; then \
cp .env.production .env; \
fi
# 构建 @teres/iframe-bridge
RUN pnpm --filter @teres/iframe-bridge run build
# 构建根 Vite 应用
RUN pnpm --filter ./ run build