trainthetrainer commited on
Commit
4d2cef6
·
verified ·
1 Parent(s): fbf268d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -20
Dockerfile CHANGED
@@ -1,22 +1,9 @@
1
- # Use plain Python, no ghcr pull
2
- FROM python:3.10-slim
3
 
4
- ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
5
- PYTHONUNBUFFERED=1 \
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
- CMD ["bash", "-lc", "langflow run --host 0.0.0.0 --port ${PORT:-7860}"]
 
 
 
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"]