benjolo commited on
Commit
115f7c3
1 Parent(s): c13b160

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -15,4 +15,5 @@ WORKDIR backend/
15
  RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
16
 
17
  # Start the FastAPI app on port 7860, the default port expected by Spaces
18
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
15
  RUN pip install --no-cache-dir --upgrade -r ./requirements.txt
16
 
17
  # Start the FastAPI app on port 7860, the default port expected by Spaces
18
+ # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
19
+ CMD ["gunicorn", "-k", "uvicorn.workers.UvicornWorker", "main:app"]