Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

CMD exec gunicorn --bind :8080 --workers 1 --threads 1 --timeout 0 main:app

# Run the web service on container startup. Here we use the gunicorn
# webserver, with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #CMD #exec #gunicorn
ADD COMMENT
Topic
Name
6+2 =