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
- Host: GitHub
- URL: https://github.com/tatamiya/cloudrun-fastapi-sample
- Owner: tatamiya
- Created: 2021-09-21T03:06:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-21T07:07:09.000Z (almost 5 years ago)
- Last Synced: 2025-03-11T14:14:39.856Z (over 1 year ago)
- Topics: fastapi, gcp-cloud-run
- Language: Dockerfile
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```