This commit is contained in:
Max Hunt 2020-05-25 19:50:19 +01:00
parent 9b4af8671b
commit bb181363a1

View File

@ -1,8 +1,15 @@
FROM node:latest FROM node:latest
WORKDIR /usr/src/app
WORKDIR /app
COPY . . COPY . .
RUN npm install
EXPOSE 5000
RUN apt update RUN apt update
RUN apt install htop RUN apt install htop
CMD [ "node", "server.js" ]
RUN npm install
RUN npm install pm2 -g
EXPOSE 5000
CMD ["pm2-runtime", "app.js"]