Change the way to build dockerfile

This commit is contained in:
2020-11-25 21:56:05 +01:00
parent 872f1f950d
commit 2bf707c695
2 changed files with 752 additions and 2841 deletions

View File

@@ -1,8 +1,7 @@
FROM node:current-alpine3.12
WORKDIR /data
COPY . /data
RUN npm install --only=prod
RUN npm install nodemon -g
# CMD ["node", "index.js"]
CMD ["nodemon", "index.js"]
CMD ["node", "index.js"]
EXPOSE 9591