benjolo commited on
Commit
969446a
1 Parent(s): e481add

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -17,5 +17,5 @@ RUN pip install git+https://github.com/huggingface/transformers.git
17
  RUN pip install pydantic[email]
18
 
19
  # Start the FastAPI app on port 7860, the default port expected by Spaces
20
- CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
21
- # CMD ["gunicorn", "--workers", "1", "bind=0.0.0.0:8000", "--log-level", "warning", "main:app"]
 
17
  RUN pip install pydantic[email]
18
 
19
  # Start the FastAPI app on port 7860, the default port expected by Spaces
20
+ # CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
21
+ CMD ["gunicorn", "-b", "0.0.0.0:7860","main:app","--workers","1","-k","uvicorn.workers.UvicornWorker"]