File tree Expand file tree Collapse file tree 9 files changed +13
-4
lines changed Expand file tree Collapse file tree 9 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ ENV PYTHONUNBUFFERED 1
2424
2525# Install dependencies
2626COPY requirements.txt .
27- RUN pip install --no-cache-dir -r requirements.txt
27+ RUN pip install --no-cache-dir -r requirements.txt
2828
2929# Copy local code to the container image.
3030COPY . .
@@ -33,4 +33,5 @@ COPY . .
3333# webserver, with one worker process and 8 threads.
3434# For environments with multiple CPU cores, increase the number of workers
3535# to be equal to the cores available.
36+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
3637CMD exec gunicorn --bind 0.0.0.0:$PORT --workers 1 --threads 8 --timeout 0 mysite.wsgi:application
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ COPY . ./
3838# Use gunicorn webserver with one worker process and 8 threads.
3939# For environments with multiple CPU cores, increase the number of workers
4040# to be equal to the cores available.
41+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
4142CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
4243
4344# [END run_broken_dockerfile]
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ RUN pip install Flask gunicorn
3434# webserver, with one worker process and 8 threads.
3535# For environments with multiple CPU cores, increase the number of workers
3636# to be equal to the cores available.
37+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
3738CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
3839
3940# [END run_helloworld_dockerfile]
Original file line number Diff line number Diff line change @@ -47,4 +47,5 @@ COPY . ./
4747# Use gunicorn webserver with one worker process and 8 threads.
4848# For environments with multiple CPU cores, increase the number of workers
4949# to be equal to the cores available.
50+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
5051CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ ENV APP_HOME /app
3131WORKDIR $APP_HOME
3232COPY . ./
3333
34- # Run the web service on container startup.
34+ # Run the web service on container startup.
3535# Use gunicorn webserver with one worker process and 8 threads.
3636# For environments with multiple CPU cores, increase the number of workers
3737# to be equal to the cores available.
38+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
3839CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ ENV APP_HOME /app
3131WORKDIR $APP_HOME
3232COPY . ./
3333
34- # Run the web service on container startup.
34+ # Run the web service on container startup.
3535# Use gunicorn webserver with one worker process and 8 threads.
3636# For environments with multiple CPU cores, increase the number of workers
3737# to be equal to the cores available.
38+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
3839CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
Original file line number Diff line number Diff line change @@ -31,8 +31,9 @@ ENV APP_HOME /app
3131WORKDIR $APP_HOME
3232COPY . ./
3333
34- # Run the web service on container startup.
34+ # Run the web service on container startup.
3535# Use gunicorn webserver with one worker process and 8 threads.
3636# For environments with multiple CPU cores, increase the number of workers
3737# to be equal to the cores available.
38+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
3839CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ COPY . ./
3838# Use gunicorn webserver with one worker process and 8 threads.
3939# For environments with multiple CPU cores, increase the number of workers
4040# to be equal to the cores available.
41+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
4142CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
4243
4344# [END run_pubsub_dockerfile]
Original file line number Diff line number Diff line change @@ -43,4 +43,5 @@ COPY . ./
4343# Use gunicorn webserver with one worker process and 8 threads.
4444# For environments with multiple CPU cores, increase the number of workers
4545# to be equal to the cores available.
46+ # Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
4647CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
You can’t perform that action at this time.
0 commit comments