adds docker deployment

This commit is contained in:
TheBeastLT
2020-03-26 18:34:29 +01:00
parent 0e802c74d2
commit 6244208ed6
6 changed files with 63 additions and 46 deletions

12
addon/Dockerfile Normal file
View File

@@ -0,0 +1,12 @@
FROM node:12-alpine
RUN apk update && apk upgrade && \
apk add --no-cache git
WORKDIR /home/node/app
COPY package*.json ./
RUN npm ci --only-production
COPY . .
CMD [ "node", "index.js" ]