create docker image

This commit is contained in:
Robin Appelman 2017-04-08 22:08:06 +02:00
commit 5397a3e9ed
6 changed files with 28 additions and 34 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/
RUN npm install
COPY index.js /usr/src/app/
EXPOSE 80
CMD [ "node", "/usr/src/app/index.js" ]