# Prebuilt image – no pip resolution at build time FROM docker.io/langflowai/langflow:1.0.12 # Hugging Face expects the app to listen on this port ENV PORT=7860 # Helpful for debugging and proxy friendliness ENV LANGFLOW_LOG_LEVEL=debug ENV LANGFLOW_ALLOW_ORIGINS="*" # Simple on-disk DB that always works on Spaces ENV LANGFLOW_DATABASE_URL=sqlite:////tmp/langflow.db EXPOSE 7860 # Important bits: # --host 0.0.0.0 -> listen on all interfaces # --port ${PORT} -> use the platform port (7860) # --path / -> serve assets from root (prevents black screen) # --workers 1 -> avoid issues with multiple workers on Spaces CMD ["bash", "-lc", "langflow run --host 0.0.0.0 --port ${PORT} --path / --workers 1"]