Nrup Parikh commited on
Commit
2b003cd
·
1 Parent(s): f7e20e1

Dockerfile updated

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -14,5 +14,6 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
  COPY --chown=user . /app
16
 
17
- # Use Gunicorn for Flask
18
- CMD ["gunicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
14
 
15
  COPY --chown=user . /app
16
 
17
+ # Corrected CMD line: Use -b (or --bind) for host:port
18
+ # The common best practice is to also specify the number of worker processes (-w)
19
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]