Install the gcloud CLI, https://cloud.google.com/sdk/docs/install
Deploy:
PROJECT=my-gcp-project-name
gcloud app deploy --project $PROJECT .
Install the gcloud CLI, https://cloud.google.com/sdk/docs/install
Deploy:
PROJECT=my-gcp-project-name
gcloud app deploy --project $PROJECT .
| # Nginx will listen on localhost:8080, serving static assets and doing gzip compression. | |
| services: | |
| app: | |
| image: python:3.13-alpine | |
| ports: ["8000:8000"] | |
| command: ["python", "-m", "http.server"] | |
| nginx: | |
| build: |
| """ | |
| Install: gcloud SDK, and configure application default credentials. | |
| https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login | |
| Install: python -m pip install click google-api-python-client google-cloud-storage | |
| Usage: | |
| main.py versions --project=my-proj | |
| main.py download --project=my-proj --version=my-version --service=default |
| runtime: python313 | |
| handlers: | |
| - url: /.* | |
| script: auto | |
| secure: always | |
| automatic_scaling: | |
| max_instances: 1 |
| runtime: python312 | |
| automatic_scaling: | |
| max_instances: 2 |