Spaces:
Runtime error
Runtime error
WaiYanLinn
commited on
Commit
•
19a0d18
1
Parent(s):
e465d83
change-server
Browse files- Dockerfile +2 -2
- requirements.txt +2 -1
Dockerfile
CHANGED
@@ -22,6 +22,6 @@ COPY . .
|
|
22 |
EXPOSE 7860
|
23 |
|
24 |
# Run uvicorn when the container launches
|
25 |
-
# CMD ["uvicorn", "main:app"]
|
26 |
# CMD ["hypercorn", "app:asgi", "--bind", "127.0.0.1:7860"]
|
27 |
-
CMD ["uvicorn", "app:asgi", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
22 |
EXPOSE 7860
|
23 |
|
24 |
# Run uvicorn when the container launches
|
|
|
25 |
# CMD ["hypercorn", "app:asgi", "--bind", "127.0.0.1:7860"]
|
26 |
+
# CMD ["uvicorn", "app:asgi", "--host", "0.0.0.0", "--port", "7860"]
|
27 |
+
CMD ["gunicorn", "-k", "gevent", "app:create_app()", "-b", "0.0.0.0:7860"]
|
requirements.txt
CHANGED
@@ -8,4 +8,5 @@ imutils
|
|
8 |
hypercorn
|
9 |
uvicorn
|
10 |
asgiref
|
11 |
-
flask-cors
|
|
|
|
8 |
hypercorn
|
9 |
uvicorn
|
10 |
asgiref
|
11 |
+
flask-cors
|
12 |
+
gunicorn
|