File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-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_pubsub_dockerfile_python]
1516# [START cloudrun_pubsub_dockerfile]
16- # [START run_pubsub_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_pubsub_dockerfile]
4544# [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
1919# Allow statements and log messages to immediately appear in the Cloud Run logs
2020ENV PYTHONUNBUFFERED True
2121
22+ # [START cloudrun_system_package_ubuntu_dockerfile_python]
2223# [START cloudrun_system_package_ubuntu]
23- # [START run_system_package_ubuntu]
2424RUN apt-get update -y && apt-get install -y \
2525 graphviz \
2626 && apt-get clean
27- # [END run_system_package_ubuntu]
2827# [END cloudrun_system_package_ubuntu]
28+ # [END cloudrun_system_package_ubuntu_dockerfile_python]
2929
3030# Copy application dependency manifests to the container image.
3131# Copying this separately prevents re-running pip install on every code change.
You can’t perform that action at this time.
0 commit comments