Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

fix: fixed dockerfile with wrong placement for removal of component index

Lucas Oliveira1e4455de3307
diff --git a/Dockerfile.langflow b/Dockerfile.langflow
index dd5be4d00..0643100d3 100644
--- a/Dockerfile.langflow
+++ b/Dockerfile.langflow
@@ -24,7 +24,6 @@ RUN pip install --no-cache-dir \
"langchain-ibm~=1.1.0"
COPY flows/ /app/flows/
-RUN rm -f /app/flows/component_index.json
COPY custom_components/ /app/custom_components/
# Copy the entrypoint before switching to root so the COPY runs as uid=1000
@@ -33,6 +32,7 @@ COPY custom_components/ /app/custom_components/
COPY --chmod=755 scripts/langflow-entrypoint.py /usr/local/bin/langflow-entrypoint
COPY flows/component_index.json /app/component_index.json
USER root
+RUN rm -f /app/flows/component_index.json
ENV LANGFLOW_SSRF_ALLOWED_HOSTS=localhost,127.0.0.1,host.docker.internal
ENV LANGFLOW_LOG_TRACE_LOCALS=false
ENV LANGFLOW_BLOCK_CODE_INTERPRETER_COMPONENTS=true