langflow / Dockerfile
ADITYA025's picture
Create Dockerfile
1a9a9fa verified
raw
history blame contribute delete
477 Bytes
# Simple Dockerfile to run Langflow in a Hugging Face Docker Space.
# Uses the official Langflow image as base (keeps build fast).
FROM langflowai/langflow:latest
# Ensure PORT is available from the environment (Hugging Face sets it for Spaces)
ENV PORT=7860
EXPOSE 7860
# Optional: change log level or add extra flags if you want
# Use shell form so ${PORT} is expanded by the shell in the CMD.
CMD python -m langflow run --host 0.0.0.0 --port ${PORT:-7860} --log-level info