mckabue commited on
Commit
8bcdfbb
·
1 Parent(s): e7f8ff5

Replace Quart with FastAPI and update Dockerfile and requirements for Uvicorn

Browse files
Files changed (2) hide show
  1. Dockerfile +2 -5
  2. requirements.txt +3 -3
Dockerfile CHANGED
@@ -15,8 +15,5 @@ RUN apt-get -y update && apt-get -y install whois && apt-get -y install netbase
15
 
16
  COPY --chown=user . /app
17
 
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"]
 
15
 
16
  COPY --chown=user . /app
17
 
18
+ # Use Uvicorn to run the FastAPI application
19
+ CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
 
requirements.txt CHANGED
@@ -1,3 +1,3 @@
1
- Quart==0.19.9
2
- requests==2.32.3
3
- Hypercorn==0.17.3 # Alternative ASGI server for Quart
 
1
+ requests
2
+ fastapi[standard]
3
+ uvicorn