leonsimon23 commited on
Commit
d647faa
·
verified ·
1 Parent(s): 9c468e2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -38,4 +38,5 @@ ENV PORT=7860
38
  EXPOSE 7860
39
 
40
  # 8. 启动命令
41
- CMD ["sh", "-c", "python app/init_db.py && gunicorn --workers 4 --worker-class gevent --timeout 300 --bind 0.0.0.0:7860 'app.main:app'"]
 
 
38
  EXPOSE 7860
39
 
40
  # 8. 启动命令
41
+ #CMD ["sh", "-c", "python app/init_db.py && gunicorn --workers 4 --worker-class gevent --timeout 300 --bind 0.0.0.0:7860 'app.main:app'"]
42
+ CMD ["sh", "-c", "python -m app.init_db && gunicorn --workers 4 --bind 0.0.0.0:7860 'app.main:create_app()'"]