Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

An issue involving node.js OOM happened (#12690)

LIRUI YUab1836f216ac
diff --git a/Dockerfile b/Dockerfile
index 48a3e687d7..75df154923 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -159,6 +159,7 @@ RUN --mount=type=cache,id=ragflow_uv,target=/root/.cache/uv,sharing=locked \
COPY web web
COPY docs docs
RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \
+ export NODE_OPTIONS="--max-old-space-size=4096" && \
cd web && npm install && npm run build
COPY .git /ragflow/.git