File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ # [START cloudrun_django_cloudmigrate_yaml_python]
1516# [START cloudrun_django_cloudmigrate]
1617steps :
1718 - id : " Build Container Image"
@@ -69,3 +70,4 @@ substitutions:
6970images :
7071 - " ${_IMAGE_NAME}"
7172# [END cloudrun_django_cloudmigrate]
73+ # [END cloudrun_django_cloudmigrate_yaml_python]
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ # [START cloudrun_broken_dockerfile_python]
1516# [START cloudrun_broken_dockerfile]
16- # [START run_broken_dockerfile]
1717
1818# Use the official Python image.
1919# https://hub.docker.com/_/python
@@ -41,5 +41,5 @@ COPY . ./
4141# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
4242CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
4343
44- # [END run_broken_dockerfile]
4544# [END cloudrun_broken_dockerfile]
45+ # [END cloudrun_broken_dockerfile_python]
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15+ # [START cloudrun_helloworld_dockerfile_python]
1516# [START cloudrun_helloworld_dockerfile]
1617
1718# Use the official lightweight Python image.
@@ -37,3 +38,4 @@ RUN pip install --no-cache-dir -r requirements.txt
3738CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
3839
3940# [END cloudrun_helloworld_dockerfile]
41+ # [END cloudrun_helloworld_dockerfile_python]
Original file line number Diff line number Diff line change @@ -26,17 +26,17 @@ COPY requirements.txt ./
2626# Install production dependencies.
2727RUN pip install -r requirements.txt
2828
29+ # [START cloudrun_imageproc_imagemagick_dockerfile_python]
2930# [START cloudrun_imageproc_dockerfile_imagemagick]
30- # [START run_imageproc_dockerfile_imagemagick]
3131# Install Imagemagick into the container image.
3232# For more on system packages review the system packages tutorial.
3333# https://cloud.google.com/run/docs/tutorials/system-packages#dockerfile
3434RUN set -ex; \
3535 apt-get -y update; \
3636 apt-get -y install imagemagick; \
3737 rm -rf /var/lib/apt/lists/*
38- # [END run_imageproc_dockerfile_imagemagick]
3938# [END cloudrun_imageproc_dockerfile_imagemagick]
39+ # [END cloudrun_imageproc_imagemagick_dockerfile_python]
4040
4141# Copy local code to the container image.
4242ENV APP_HOME /app
You can’t perform that action at this time.
0 commit comments