npm i
- Install gcloud: https://cloud.google.com/sdk/docs/install
- Run
gcloud auth loginand sign in with your browser
Run npm run dev
- Install Docker Desktop
- Run
gcloud auth configure-docker
Container Registry -> Enable
First install the Docker VSCode extension (Recommended)
- Right click
Dockerfilein repo root. SelectBuild Image... - Name the image:
gcr.io/<project-name>/<image-name>:latest
- Go to Docker extension tab
- Right click on
Images -> gcr.io/<project-name>/<image-name> -> latest, thenPush
- Go to Cloud Run: https://console.cloud.google.com/run
- Create new service, and select your latest image when deploying