Z
Z
zanec922019-09-06 17:45:41
Regular Expressions
zanec92, 2019-09-06 17:45:41

What is the Docker Compose and Dockerfile config for NestJS?

What is the correct Docker Compose and Dockerfile config for NestJS development?
What is the Dockerfile for deploying an environment in Docker? I can't find it anywhere.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Snewer, 2018-03-17
@serejatoje

/<\/i>(\d+)/i

G
grinat, 2019-09-06
@grinat

Under the node, it is inconvenient to develop in the docker. Yes, and he is not needed there, so you will not find him.

V
vetal1977, 2021-04-02
@vetal1977

FROM node:12
EXPOSE 5000
WORKDIR /usr/src/app
COPY package*.json ./
RUN yarn install
ENV PORT=$PORT
COPY . /usr/src/app
RUN npm run build
CMD [ "node", "dist/main.js" ]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question