Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- 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()'"]
|