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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -12,7 +12,7 @@ COPY --chown=user . $HOME/app
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"]这种形式
 
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"] #Oked
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"]这种形式