Spaces:
Runtime error
Runtime error
File size: 721 Bytes
768e57b c7af896 768e57b c9c0da9 c7af896 768e57b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | # 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"]
|