changed to run with gunicorn in docker
This commit is contained in:
parent
3210343537
commit
17cd6ae30f
3 changed files with 10 additions and 3 deletions
|
@ -20,5 +20,5 @@ EXPOSE 5000
|
|||
ENV FLASK_APP=app.py
|
||||
ENV FLASK_ENV=production
|
||||
|
||||
# Command to run the application
|
||||
CMD ["flask", "run", "--host=0.0.0.0"]
|
||||
# Command to run the application with gunicorn
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "4", "app:app"]
|
Loading…
Add table
Add a link
Reference in a new issue