add dockerfile

This commit is contained in:
Robin Appelman 2017-04-13 18:49:20 +02:00
commit 40dc4749cf
6 changed files with 21 additions and 1 deletions

12
Dockerfile Normal file
View file

@ -0,0 +1,12 @@
FROM node:7.8-alpine
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
COPY sync.ts /usr/src/app/
RUN npm install && node node_modules/.bin/tsc sync.ts && npm prune --production
EXPOSE 80
CMD [ "node", "/usr/src/app/sync.js" ]