An open API service indexing awesome lists of open source software.

https://github.com/tatamiya/cloudrun-fastapi-sample

Build and deploy a sample FastAPI service to GCP Cloud Run
https://github.com/tatamiya/cloudrun-fastapi-sample

fastapi gcp-cloud-run

Last synced: over 1 year ago
JSON representation

Build and deploy a sample FastAPI service to GCP Cloud Run

Awesome Lists containing this project

README

          

# cloudrun-fastapi-sample
Build and deploy a sample FastAPI service to GCP Cloud Run

# Commands
## Build

```shell
docker build -t cloudrun-fastapi-sample .
```

## Local Run

```shell
docker run -p 8000:8080 cloudrun-fastapi-sample
```

## Deploy to Cloud Run

```shell
gcloud run deploy --image gcr.io//cloudrun-fastapi-sample
```