Docker

Dockererize your Node.js API and deploy it to Cloud Run

Dockerize

command line
docker build -t fireship/stripe-server .
docker run -p 3333:3333 fireship/stripe-server 

Deploy to Cloud Run

Push the container to Container Registry.

command line
gcloud config set project <PROJECT_ID>
gcloud builds submit --tag gcr.io/PROJECT_ID/stripe-server

Then follow the steps in the video to create a Cloud Run Service.

Questions? Let's chat

Open Discord