/    Sign up×
Bounties /Pin to ProfileBookmark

google cloud run with nest.js

+ 1,000
Copy linkTweet thisAlerts:
Mar 31.2023
to post a answer
DockerNestjs

1 Answer(s)

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 2.22,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
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: Anonymous,
tipped: article
amount: 1000 SATS,

tipper: @themolitor,
tipped: article
amount: 12345 SATS,

tipper: @dert,
tipped: live stream
amount: 1000 SATS,
)...