danielle2035 commited on
Commit
d2de8aa
·
1 Parent(s): 5ece399
Files changed (1) hide show
  1. Dockerfile +8 -1
Dockerfile CHANGED
@@ -26,5 +26,12 @@ RUN mkdir -p models uploads outputs logs
26
  ENV PORT=7860
27
  EXPOSE 7860
28
 
 
 
 
 
 
 
 
29
  #CMD ["python", "app.py"]
30
- CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
 
26
  ENV PORT=7860
27
  EXPOSE 7860
28
 
29
+ # PAR :
30
+ CMD ["gunicorn", "-b", "0.0.0.0:7860", \
31
+ "--timeout", "300", \
32
+ "--workers", "2", \
33
+ "--worker-class", "gthread", \
34
+ "--threads", "4", \
35
+ "app:app"]
36
  #CMD ["python", "app.py"]
37
+ #CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]