beef up gunicorn
This commit is contained in:
@@ -18,5 +18,6 @@ COPY static/ ./static
|
|||||||
# Expose the Flask port
|
# Expose the Flask port
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
# Run the app with Gunicorn
|
# Run the app with Gunicorn, 4 workers, 2 threads each
|
||||||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app", "-w", "4", "--threads", "2"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user