Skip to content

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

Python

Merge pull request #1237 from langflow-ai/mp/fix/GH-1233-langflow-data-permissions-macos

Mike Pawlowskicad721df7b11
diff --cc Dockerfile.langflow
index 7504f48b5,d727620d4..fcb4ee4f0
--- a/Dockerfile.langflow
+++ b/Dockerfile.langflow
@@@ -4,9 -4,15 +4,16 @@@ FROM langflowai/langflow:1.8.
# Install uv and pre-create the Langflow data directory.
# The base image already runs as uid=1000 and owns /app, so no root or chown needed.
RUN pip install uv \
+ && pip uninstall -y litellm \
&& mkdir -p /app/langflow-data
+ # Copy the entrypoint before switching to root so the COPY runs as uid=1000
+ # (which owns /app), then switch to root so the entrypoint can correct
+ # bind-mount permissions at runtime before dropping back to uid=1000.
+ COPY --chmod=755 scripts/langflow-entrypoint.py /usr/local/bin/langflow-entrypoint
+ USER root
+
EXPOSE 7860
+ ENTRYPOINT ["langflow-entrypoint"]
CMD ["langflow", "run", "--host", "0.0.0.0", "--port", "7860"]