Spaces:
Runtime error
Runtime error
Commit
·
df79f0c
1
Parent(s):
547bb4e
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -11,4 +11,6 @@ COPY --chown=user . $HOME/app
|
|
| 11 |
#CMD ["gunicorn", "main:app", "--bind", "0.0.0.0:10000"]
|
| 12 |
#似乎端口必须是7860???是的!App port: Your Docker Space needs to listen on port 7860
|
| 13 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]
|
| 14 |
-
#CMD ["gunicorn", "main:app", "--bind", "0.0.0.0:7860"]
|
|
|
|
|
|
|
|
|
| 11 |
#CMD ["gunicorn", "main:app", "--bind", "0.0.0.0:10000"]
|
| 12 |
#似乎端口必须是7860???是的!App port: Your Docker Space needs to listen on port 7860
|
| 13 |
CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]
|
| 14 |
+
#CMD ["gunicorn", "main:app", "--bind", "0.0.0.0:7860"]
|
| 15 |
+
#模板给的是CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 16 |
+
#适用的是uvicorn,gunicorn可能必须采用CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]这种形式
|