rogerxavier commited on
Commit
eb4bed8
1 Parent(s): 78fa7f6

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -58,16 +58,14 @@ COPY requirements.txt .
58
  RUN pip install -r requirements.txt
59
 
60
  COPY . .
61
- # 安装 uvicorn
62
- RUN pip install uvicorn
63
 
64
 
65
 
66
  EXPOSE 7860
67
 
68
  # CMD ["/usr/local/lib/Scripts/uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
69
-
70
- CMD ["/usr/bin/python3.9", "-m", "uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
71
 
72
 
73
 
 
58
  RUN pip install -r requirements.txt
59
 
60
  COPY . .
 
 
61
 
62
 
63
 
64
  EXPOSE 7860
65
 
66
  # CMD ["/usr/local/lib/Scripts/uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
67
+ #用flask防止uvicorn命令干扰(创建app.py)
68
+ CMD ["flask", "run", "--host=0.0.0.0", "--port=7860"]
69
 
70
 
71