Nechba commited on
Commit
b76b429
·
verified ·
1 Parent(s): 72c73eb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -22,8 +22,8 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
22
  # Copy the current directory contents into the container at /app
23
  COPY --chown=user . /app
24
 
25
- # Make sure uvicorn is installed and available in the PATH
26
- RUN pip install --user uvicorn
27
 
28
- # Command to run the application using Uvicorn
29
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
22
  # Copy the current directory contents into the container at /app
23
  COPY --chown=user . /app
24
 
25
+ # Install Gunicorn (instead of Uvicorn)
26
+ RUN pip install --user gunicorn
27
 
28
+ # Command to run the application using Gunicorn
29
+ CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:app"]