RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.
Go agent-harnessagent-native-databaseagentic-aiagentic-retrievalagentic-searchaiai-agentscontext-enginecontext-engineeringcontext-managementharness-engineeringknowledge-compilationragretrieval-augmented-generationretrieval-harnesssearch-harness
fix(docker): [URGENT] Docker build fails for all PRs - missing web/scripts/prepare.js during npm install (#16821)
Önderye53235ed3d4b
diff --git a/Dockerfile b/Dockerfileindex 27cd035f82..aba74318a9 100644--- a/Dockerfile+++ b/Dockerfile@@ -226,6 +226,10 @@ RUN --mount=type=cache,id=ragflow_uv,target=/root/.cache/uv,sharing=locked \# Install frontend dependencies — depends only on package manifests so# web source / docs changes don't invalidate this layer.COPY web/package.json web/package-lock.json web/.npmrc ./web/+# The `prepare` lifecycle script (npm install) runs `node scripts/prepare.js`,+# so that file must be present before `npm install` or the build fails with+# "Cannot find module '/ragflow/web/scripts/prepare.js'".+COPY web/scripts ./web/scriptsRUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \cd web && NODE_OPTIONS="--max-old-space-size=8192" npm install