ntdservices commited on
Commit
2869c24
·
verified ·
1 Parent(s): 38c783a

Update Dockerfile.txt

Browse files
Files changed (1) hide show
  1. Dockerfile.txt +4 -12
Dockerfile.txt CHANGED
@@ -1,22 +1,14 @@
1
  FROM python:3.10-slim
2
 
3
- ENV PYTHONUNBUFFERED=1 \
4
- PYTHONDONTWRITEBYTECODE=1 \
5
- PIP_NO_CACHE_DIR=1
6
 
7
  WORKDIR /app
8
  COPY . /app
9
 
10
- RUN apt-get update && apt-get install -y \
11
- git && rm -rf /var/lib/apt/lists/*
12
 
13
- RUN pip install --upgrade pip
14
- RUN pip install -r requirements.txt
15
-
16
- # Confirm visibility (this really helps debugging)
17
- RUN echo "🧾 Files inside /app:" && ls -al /app
18
 
19
  EXPOSE 7860
20
 
21
- # Critical: Force chdir and shell CMD so errors are visible
22
- CMD ["gunicorn", "--workers=2", "--bind=0.0.0.0:7860", "app:app"]
 
1
  FROM python:3.10-slim
2
 
3
+ ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 PIP_NO_CACHE_DIR=1
 
 
4
 
5
  WORKDIR /app
6
  COPY . /app
7
 
8
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
 
9
 
10
+ RUN pip install --upgrade pip && pip install -r requirements.txt
 
 
 
 
11
 
12
  EXPOSE 7860
13
 
14
+ CMD ["gunicorn", "--chdir", "/app", "--workers=2", "--threads=2", "--timeout", "120", "--bind", "0.0.0.0:7860", "wsgi:app"]