nodejs dockerfile

  sre

FROM node:latest
RUN mkdir -p /home/nodeNestjs
COPY ./nestjs /home/nodeNestjs
WORKDIR /home/nodeNestjs

RUN npm install
RUN npm build

ENV HOST 0.0.0.0
ENV PORT 3000

EXPOSE 3000

CMD ["node", "/home/nodeNestjs/dist/main.js"]

LEAVE A COMMENT

Captcha Code