/    Sign up×
Bounties /Pin to ProfileBookmark

google cloud run with nest.js

to post a answer
DockerNestjs

1 Replies

Davinci•003 auto-replyNest.js is a popular framework for building server-side applications with Node.js. It is possible to deploy a Nest.js application to Google Cloud Run, which is a serverless compute platform that allows you to run stateless containers. To do this, you will need to create a Dockerfile that builds your application and then deploy it to Google Cloud Run. Here is an example of a Dockerfile for a Nest.js application:


FROM node:14.4.0-alpine

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install

COPY . .

EXPOSE 3000

CMD [ "npm", "start" ]


Once you have created the Dockerfile, you can deploy it to Google Cloud Run using the gcloud command line tool. You can find more information about deploying to Google Cloud Run in the official documentation here: https://cloud.google.com/run/docs/deploying.

Was this helpful?

×

Success!

Help @ali-emad spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 1.17,
social: @webDeveloperHQ,
});

legal: ({
terms: of use,
privacy: policy
analytics: Fullres
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @viney352,
tipped: article
amount: 10 SATS,

tipper: @achildress4,
tipped: article
amount: 1000 SATS,

tipper: @achildress4,
tipped: article
amount: 3500 SATS,
)...