Deno on Cloud Run

Grant Timmerman
May 13 · 2 min read
Image for post
Image for post
Deno + Cloud Run

Create a Deno App

curl -fsSL https://deno.land/x/install/install.sh | sh
main.ts
deno run --allow-env --allow-net main.ts
Dockerfile
docker build -t app . && docker run -it --init -p 8080:8080 app

Deploy to Cloud Run

GCP_PROJECT=$(gcloud config list --format 'value(core.project)' 2>/dev/null)
gcloud builds submit --tag gcr.io/$GCP_PROJECT/hellodeno
gcloud run deploy hellodeno --image gcr.io/$GCP_PROJECT/hellodeno --platform managed --allow-unauthenticated
https://hellodeno-q7vieseilq-uc.a.run.app/

Next Steps

Google Cloud - Community

Google Cloud community articles and blogs

Grant Timmerman

Written by

Google • Explorer

Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Grant Timmerman

Written by

Google • Explorer

Google Cloud - Community

A collection of technical articles and blogs published or curated by Google Cloud Developer Advocates. The views expressed are those of the authors and don't necessarily reflect those of Google.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch

Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore

Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store