add production stage

This commit is contained in:
marcel-dempers 2020-03-29 22:49:13 +11:00
parent 772ef7e985
commit a6ea3373aa

View File

@ -12,7 +12,9 @@ CMD nodemon --inspect=0.0.0.0 server.js
FROM node:12.4.0-alpine as prod
WORKDIR /work/
COPY ./src/package.json /work/package.json
RUN npm install
COPY ./src/ /work/
CMD node server.js
CMD node .