Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/louis70109/fastapi-cloud-run-sample
FastAPI example for deploying to GCP Cloud Run
https://github.com/louis70109/fastapi-cloud-run-sample
fastapi gcp gcp-cloud-run python
Last synced: 4 months ago
JSON representation
FastAPI example for deploying to GCP Cloud Run
- Host: GitHub
- URL: https://github.com/louis70109/fastapi-cloud-run-sample
- Owner: louis70109
- License: mit
- Created: 2023-03-19T09:07:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-15T18:09:49.000Z (9 months ago)
- Last Synced: 2024-05-16T23:35:09.569Z (9 months ago)
- Topics: fastapi, gcp, gcp-cloud-run, python
- Language: Python
- Homepage: https://nijialin.com/2023/03/19/gcp-why-need-cloudrun-as-serverless/
- Size: 12.7 KB
- Stars: 9
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FastAPI 佈署到 Cloud Run 範例
本範例展示了如何使用 Google Cloud Run 快速佈署 FastAPI 應用程式。這個範例將引導您完成以下步驟:
- 使用 Dockerfile 建立一個 Docker 映像檔。
- 使用 gcloud CLI 在 Cloud Run 上啟動映像檔與佈署。
- 測試在 Cloud Run 上執行的 FastAPI 應用程式。## 前置要求
在開始之前,您需要具備以下要求:
- 一個 Google Cloud Platform 帳戶。
- 安裝了 gcloud CLI 工具。
- 已經安裝 Docker 在本地端環境中。## 使用方式
[![Run on Google Cloud](https://deploy.cloud.run/button.svg)](https://deploy.cloud.run)
```
git clone https://github.com/louis70109/FastAPI-Cloud-Run-Sample.gitcd FastAPI-Cloud-Run-Sample/
gcloud run deploy my-fastapi-example --source .
```## 授權
MIT