Replace Quart with FastAPI and update Dockerfile and requirements for Uvicorn
Browse files- Dockerfile +2 -5
- 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 |
-
#
|
19 |
-
|
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 |
-
|
2 |
-
|
3 |
-
|
|
|
1 |
+
requests
|
2 |
+
fastapi[standard]
|
3 |
+
uvicorn
|