Adding CI and making CI ready
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Fabian Stamm
2020-01-07 23:03:26 +01:00
parent ef234ed748
commit e9e580b74d
6 changed files with 81 additions and 13 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM node:12
LABEL maintainer="Fabian Stamm <dev@fabianstamm.de>"
RUN apt-get update
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ENV NODE_ENV=production
COPY ["package.json", "package-lock.json", "/usr/src/app/"]
RUN npm install
COPY lib/ /usr/src/app/lib
VOLUME [ "/usr/src/app/logs", "/usr/src/app/persist"]
CMD ["npm", "run", "start"]