Skip to content

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

Fixed docker build (#2881)

Zhichang Yu396bb4b6889b
diff --git a/Dockerfile b/Dockerfile
index 290010998c..1db0230f04 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -48,6 +48,7 @@ RUN --mount=type=cache,id=ragflow_builder_apt,target=/var/cache/apt,sharing=lock
rm -rf /var/lib/apt/lists/*
COPY web web
+COPY api api
RUN --mount=type=cache,id=ragflow_builder_npm,target=/root/.npm,sharing=locked \
cd web && npm i --force && npm run build
diff --git a/Dockerfile.slim b/Dockerfile.slim
index f0bed4eb83..6e6bd9ab03 100644
--- a/Dockerfile.slim
+++ b/Dockerfile.slim
@@ -47,6 +47,7 @@ RUN --mount=type=cache,id=ragflow_builder_apt,target=/var/cache/apt,sharing=lock
rm -rf /var/lib/apt/lists/*
COPY web web
+COPY api api
RUN --mount=type=cache,id=ragflow_builder_npm,target=/root/.npm,sharing=locked \
cd web && npm i --force && npm run build