File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +4
-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_pubsub_dockerfile_python]
15
16
# [START cloudrun_pubsub_dockerfile]
16
- # [START run_pubsub_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_pubsub_dockerfile]
45
44
# [END cloudrun_pubsub_dockerfile]
45
+ # [END cloudrun_pubsub_dockerfile_python]
Original file line number Diff line number Diff line change @@ -19,13 +19,13 @@ FROM python:3.11
19
19
# Allow statements and log messages to immediately appear in the Cloud Run logs
20
20
ENV PYTHONUNBUFFERED True
21
21
22
+ # [START cloudrun_system_package_ubuntu_dockerfile_python]
22
23
# [START cloudrun_system_package_ubuntu]
23
- # [START run_system_package_ubuntu]
24
24
RUN apt-get update -y && apt-get install -y \
25
25
graphviz \
26
26
&& apt-get clean
27
- # [END run_system_package_ubuntu]
28
27
# [END cloudrun_system_package_ubuntu]
28
+ # [END cloudrun_system_package_ubuntu_dockerfile_python]
29
29
30
30
# Copy application dependency manifests to the container image.
31
31
# Copying this separately prevents re-running pip install on every code change.
You can’t perform that action at this time.
0 commit comments