COPY package*.json ./
RUN npm install pm2 -g
RUN npm install
COPY . .
CMD ["pm2-runtime", "server.js"]
I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.