Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +7 -20
Dockerfile
CHANGED
|
@@ -1,22 +1,9 @@
|
|
| 1 |
-
#
|
| 2 |
-
FROM
|
| 3 |
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
PYTHONDONTWRITEBYTECODE=1
|
| 7 |
-
|
| 8 |
-
# System deps for building a few wheels
|
| 9 |
-
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 10 |
-
build-essential gcc curl \
|
| 11 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
-
|
| 13 |
-
WORKDIR /app
|
| 14 |
-
|
| 15 |
-
# ---- Python deps
|
| 16 |
-
COPY requirements.txt /app/requirements.txt
|
| 17 |
-
RUN pip install --upgrade pip \
|
| 18 |
-
&& pip install --no-cache-dir -r requirements.txt
|
| 19 |
-
|
| 20 |
-
# Hugging Face sets PORT; default to 7860 for local
|
| 21 |
EXPOSE 7860
|
| 22 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
# Pull the official prebuilt image – avoids pip install on the builder
|
| 2 |
+
FROM ghcr.io/logspace-ai/langflow:1.0.12
|
| 3 |
|
| 4 |
+
# Hugging Face serves the app on 7860 by convention
|
| 5 |
+
ENV PORT=7860
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
EXPOSE 7860
|
| 7 |
+
|
| 8 |
+
# Run Langflow
|
| 9 |
+
CMD ["langflow", "run", "--host", "0.0.0.0", "--port", "7860"]
|