Assuming more available cores for gunicorn. Updated readme.
This commit is contained in:
parent
6fdae317f9
commit
ab741856cb
2 changed files with 16 additions and 2 deletions
|
|
@ -23,5 +23,5 @@ COPY . .
|
|||
# Expose Flask port
|
||||
EXPOSE 5000
|
||||
|
||||
# Launch Gunicorn with 4 workers (adjust for your CPU cores)
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app", "--workers", "4"]
|
||||
# Launch Gunicorn with 8 workers (adjust for your CPU cores)
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "app:app", "--workers", "8"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue