Docker file for Express App with PM2

FROM node:10

WORKDIR /usr/src/app

COPY package*.json ./

RUN npm install pm2 -g

RUN npm install

COPY . .

EXPOSE 8080

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.

3 Comments

Leave a Reply

Your email address will not be published.