Découpage en module

This commit is contained in:
2020-10-17 19:32:32 +02:00
parent 14fdcc39c2
commit 47ea30b234
12 changed files with 3197 additions and 200 deletions

View File

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