Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +11 -0
Dockerfile
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Simple Dockerfile to run Langflow in a Hugging Face Docker Space.
|
| 2 |
+
# Uses the official Langflow image as base (keeps build fast).
|
| 3 |
+
FROM langflowai/langflow:latest
|
| 4 |
+
|
| 5 |
+
# Ensure PORT is available from the environment (Hugging Face sets it for Spaces)
|
| 6 |
+
ENV PORT=7860
|
| 7 |
+
EXPOSE 7860
|
| 8 |
+
|
| 9 |
+
# Optional: change log level or add extra flags if you want
|
| 10 |
+
# Use shell form so ${PORT} is expanded by the shell in the CMD.
|
| 11 |
+
CMD python -m langflow run --host 0.0.0.0 --port ${PORT:-7860} --log-level info
|