Added Dockerfile

This commit is contained in:
Peter Sykora 2018-04-23 19:32:12 +02:00
parent 471d666de2
commit 0a124ba961

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM node:9
# Create app directory
WORKDIR /usr/src/app
# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./
RUN npm install --only=production
# Bundle app source
COPY . .
VOLUME /usr/src/app/data
RUN npm run reset-db
EXPOSE 3000
CMD [ "npm", "start" ]