mckabue commited on
Commit
698d0e5
·
1 Parent(s): 23e8def

Replace Gunicorn with Hypercorn as the ASGI server for the Quart application in Dockerfile and update requirements.txt

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -1
  2. requirements.txt +2 -2
Dockerfile CHANGED
@@ -18,4 +18,5 @@ COPY --chown=user . /app
18
  # CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
19
  # Use Gunicorn to run the Quart application
20
  # https://github.com/benoitc/gunicorn/issues/2109#issuecomment-530030943
21
- CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "4", "--worker-class", "uvicorn.workers.UvicornWorker", "app:app"]
 
 
18
  # CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]
19
  # Use Gunicorn to run the Quart application
20
  # https://github.com/benoitc/gunicorn/issues/2109#issuecomment-530030943
21
+ # https://www.uvicorn.org/#hypercorn
22
+ CMD ["hypercorn", "--bind", "0.0.0.0:7860", "app:app"]
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
- gunicorn==22.0.0
2
  Quart==0.19.9
3
- requests==2.32.3
 
 
 
1
  Quart==0.19.9
2
+ requests==2.32.3
3
+ Hypercorn==0.17.3 # Alternative ASGI server for Quart