Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit d340361

Browse files
author
Jon Wayne Parrott
committed
Updated readme with Flex changes
1 parent 17c5378 commit d340361

1 file changed

Lines changed: 16 additions & 4 deletions

File tree

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,24 @@
1-
# Google Cloud Platform Python Docker Image
1+
# Google Cloud Platform - Python Runtime Docker Image
22

3-
This repository contains the source for the `gcr.io/google_appengine/python` [docker](https://docker.io) base image. This image can be used as the base image for running applications on [Google App Engine Managed VMs](https://cloud.google.com/appengine), [Google Container Engine](https://cloud.google.com/container-engine), or any other Docker host.
3+
This repository contains the source for the `gcr.io/google_appengine/python` [docker](https://docker.io) base image. This image can be used as the base image for running applications on [Google App Engine Flexible](https://cloud.google.com/appengine/docs/flexible/), [Google Container Engine](https://cloud.google.com/container-engine), or any other Docker host.
44

5-
This image is based on Debian Jessie and contains packages required to build most of the popular Python libraries.
5+
This image is based on Debian Jessie and contains packages required to build most of the popular Python libraries. For more information about this runtime, see the [documentation](https://cloud.google.com/appengine/docs/flexible/python/runtime).
66

77
## App Engine
88

9-
To generate a Dockerfile that uses this image as a base, use the [`Cloud SDK`](https://cloud.google.com/sdk/gcloud/reference/preview/app/gen-config):
9+
When using App Engine Flexible, you can use the runtime without worrying about docker by specifying `runtime: python` in your `app.yaml`:
10+
11+
```yaml
12+
runtime: python
13+
vm: true
14+
entrypoint: gunicorn -b :$PORT main:app
15+
16+
runtime_config:
17+
# You can also specify 2 for Python 2.7
18+
python_version: 3
19+
```
20+
21+
If you want to use this runtime as a base and customize it, you can generate a Dockerfile using the [`Cloud SDK`](https://cloud.google.com/sdk/gcloud/reference/preview/app/gen-config):
1022

1123
gcloud preview app gen-config --custom
1224

0 commit comments

Comments
 (0)