Reshama commited on
Commit
8901e78
·
verified ·
1 Parent(s): fe8bc72

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -17,5 +17,9 @@ RUN pip install flask gunicorn pymupdf tiktoken
17
  # Expose default port
18
  EXPOSE 7860
19
 
20
- # Run with Gunicorn
21
- CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]
 
 
 
 
 
17
  # Expose default port
18
  EXPOSE 7860
19
 
20
+ # Run with Gunicorn (Flask / WSGI)
21
+ CMD ["gunicorn", "app:app", \
22
+ "--bind", "0.0.0.0:${PORT}", \
23
+ "--workers", "1", "--threads", "4", "--timeout", "180", \
24
+ "--access-logfile", "-", "--error-logfile", "-", "--log-level", "debug", \
25
+ "--preload"]