GoodML commited on
Commit
e8e81db
·
verified ·
1 Parent(s): c2d21ca

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -10,5 +10,7 @@ COPY --chown=user ./requirements.txt requirements.txt
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
  COPY --chown=user . /app
13
- CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
14
 
 
 
 
10
  RUN pip install --no-cache-dir --upgrade -r requirements.txt
11
 
12
  COPY --chown=user . /app
13
+ # CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
14
 
15
+ # Run Gunicorn with timeout and workers
16
+ CMD ["gunicorn", "--timeout", "120", "-w", "2", "-b", "0.0.0.0:7860", "app:app"]