Deploy a FastAPI App to Google Cloud Run with uv and Docker
Автор: GCP Learning with Mazlum & GroupBees
Загружено: 2025-10-13
Просмотров: 286
Описание:
Learn how to deploy a FastAPI application to Google Cloud Run using uv, Docker, and Cloud Build — optimized for real-world, production-ready setups.
In this tutorial, I cover:
Running a FastAPI app locally using uv and Uvicorn, with automatic venv setup via DirEnv
Building and running the app in Docker with uv, leveraging Docker cache for faster builds
Deploying to Google Cloud Run (serverless) for scalable, cost-efficient hosting
Automating the build and deployment process with Cloud Build
Using Docker cache and image cache for a GreenOps approach — minimizing rebuilds and improving sustainability across CI/CD pipelines
If you’ve seen my earlier video using pip, this version updates the entire process using uv — the next-generation Python package and environment manager.
Related videos:
FastAPI on Cloud Run using pip: • Cloud Run Service with a Python module, Fa...
Google Cloud Tech collaboration episode: • FastAPI on Cloud Run
Tech Stack:
Python 3.x
FastAPI
uv
Docker
Google Cloud Run
Cloud Build
DirEnv
Resources:
FastAPI Docs: https://fastapi.tiangolo.com
Google Cloud Run: https://cloud.google.com/run
uv: https://github.com/astral-sh/uv
#GoogleCloud #FastAPI #CloudRun #uv #Python #Docker #CloudBuild #DevOps #Serverless #GreenOps #CloudComputing
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: