precison9 commited on
Commit
b33297e
·
verified ·
1 Parent(s): c178778

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -52,7 +52,7 @@ ENV NUMBA_DISABLE_CACHE=1
52
  # - 'your_app' should be the name of your main Python file (without the .py extension).
53
  # - 'app' should be the name of your Flask application instance
54
  # (e.g., app = flask.Flask(__name__)).
55
- CMD ["gunicorn", "--workers", "4", "--timeout", "30000", "--bind", "0.0.0.0:7860", "flask_Character:app"]
56
  # Important Note:
57
  # Before building your Docker image, make sure to remove the following block
58
  # from your main Flask application file (your_app.py):
 
52
  # - 'your_app' should be the name of your main Python file (without the .py extension).
53
  # - 'app' should be the name of your Flask application instance
54
  # (e.g., app = flask.Flask(__name__)).
55
+ CMD ["gunicorn", "--workers", "4", "--timeout", "30000", "--bind", "0.0.0.0:7860", "--worker-class", "uvicorn.workers.UvicornWorker", "flask_Character:app"]
56
  # Important Note:
57
  # Before building your Docker image, make sure to remove the following block
58
  # from your main Flask application file (your_app.py):