File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Filter options
Expand file tree Collapse file tree 4 files changed +8
-4
lines changed
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ # [START cloudrun_django_cloudmigrate_yaml_python]
15
16
# [START cloudrun_django_cloudmigrate]
16
17
steps :
17
18
- id : " Build Container Image"
@@ -69,3 +70,4 @@ substitutions:
69
70
images :
70
71
- " ${_IMAGE_NAME}"
71
72
# [END cloudrun_django_cloudmigrate]
73
+ # [END cloudrun_django_cloudmigrate_yaml_python]
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ # [START cloudrun_broken_dockerfile_python]
15
16
# [START cloudrun_broken_dockerfile]
16
- # [START run_broken_dockerfile]
17
17
18
18
# Use the official Python image.
19
19
# https://hub.docker.com/_/python
@@ -41,5 +41,5 @@ COPY . ./
41
41
# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
42
42
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
43
43
44
- # [END run_broken_dockerfile]
45
44
# [END cloudrun_broken_dockerfile]
45
+ # [END cloudrun_broken_dockerfile_python]
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ # [START cloudrun_helloworld_dockerfile_python]
15
16
# [START cloudrun_helloworld_dockerfile]
16
17
17
18
# Use the official lightweight Python image.
@@ -37,3 +38,4 @@ RUN pip install --no-cache-dir -r requirements.txt
37
38
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
38
39
39
40
# [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 ./
26
26
# Install production dependencies.
27
27
RUN pip install -r requirements.txt
28
28
29
+ # [START cloudrun_imageproc_imagemagick_dockerfile_python]
29
30
# [START cloudrun_imageproc_dockerfile_imagemagick]
30
- # [START run_imageproc_dockerfile_imagemagick]
31
31
# Install Imagemagick into the container image.
32
32
# For more on system packages review the system packages tutorial.
33
33
# https://cloud.google.com/run/docs/tutorials/system-packages#dockerfile
34
34
RUN set -ex; \
35
35
apt-get -y update; \
36
36
apt-get -y install imagemagick; \
37
37
rm -rf /var/lib/apt/lists/*
38
- # [END run_imageproc_dockerfile_imagemagick]
39
38
# [END cloudrun_imageproc_dockerfile_imagemagick]
39
+ # [END cloudrun_imageproc_imagemagick_dockerfile_python]
40
40
41
41
# Copy local code to the container image.
42
42
ENV APP_HOME /app
You can’t perform that action at this time.
0 commit comments