binqiangliu commited on
Commit
f13d727
·
1 Parent(s): 76c6315

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -11,7 +11,8 @@ 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"] #OKed
14
- CMD ["gunicorn", "-bind", "0.0.0.0:7860", "main:app"]
 
15
  #CMD ["gunicorn", "main:app", "--bind", "0.0.0.0:7860"]
16
  #模板给的是CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
17
  #模板适用的是uvicorn;而gunicorn可能必须采用CMD ["gunicorn", "-b", "0.0.0.0:7860", "main: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"] #OKed
14
+ #CMD ["gunicorn", "-bind", "0.0.0.0:7860", "main:app"] #Failed
15
+ CMD ["gunicorn", "main:app", "-b", "0.0.0.0:7860"] #???
16
  #CMD ["gunicorn", "main:app", "--bind", "0.0.0.0:7860"]
17
  #模板给的是CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
18
  #模板适用的是uvicorn;而gunicorn可能必须采用CMD ["gunicorn", "-b", "0.0.0.0:7860", "main:app"]这种形式