Christinapet commited on
Commit
0787e70
·
verified ·
1 Parent(s): 803d9c7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -13
Dockerfile CHANGED
@@ -1,28 +1,16 @@
1
  FROM python:3.11-slim
2
 
3
- # System deps (git removes the "Bad git executable" warning)
4
  RUN apt-get update && apt-get install -y --no-install-recommends \
5
- build-essential \
6
- curl \
7
- git \
8
  && rm -rf /var/lib/apt/lists/*
9
 
10
- # Basic runtime env
11
  ENV PYTHONUNBUFFERED=1 \
12
  PIP_NO_CACHE_DIR=1
13
 
14
  WORKDIR /app
15
 
16
- # Install Langflow
17
  RUN pip install --upgrade pip && pip install langflow
18
 
19
- # Hugging Face will proxy the exposed port
20
  EXPOSE 7860
21
 
22
- # IMPORTANT: Disable auto-login to avoid API-key requirement loop on v1.5+
23
- ENV LANGFLOW_AUTO_LOGIN=false
24
- ENV LANGFLOW_SKIP_AUTH_AUTO_LOGIN=true
25
-
26
- # Bind to Hugging Face provided PORT if present (fallback to 7860)
27
  CMD ["sh", "-lc", "langflow run --host 0.0.0.0 --port ${PORT:-7860}"]
28
-
 
1
  FROM python:3.11-slim
2
 
 
3
  RUN apt-get update && apt-get install -y --no-install-recommends \
4
+ build-essential curl git \
 
 
5
  && rm -rf /var/lib/apt/lists/*
6
 
 
7
  ENV PYTHONUNBUFFERED=1 \
8
  PIP_NO_CACHE_DIR=1
9
 
10
  WORKDIR /app
11
 
 
12
  RUN pip install --upgrade pip && pip install langflow
13
 
 
14
  EXPOSE 7860
15
 
 
 
 
 
 
16
  CMD ["sh", "-lc", "langflow run --host 0.0.0.0 --port ${PORT:-7860}"]