add dockerfile

This commit is contained in:
Roman Shtylman 2014-10-11 20:43:14 -07:00
parent 07bad31e72
commit a5edd0f8f4
2 changed files with 13 additions and 0 deletions

2
.dockerignore Normal file
View File

@ -0,0 +1,2 @@
.git
node_modules

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM node:0.10.32
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
ADD package.json /usr/src/app/
RUN npm install
ADD . /usr/src/app
ENV NODE_ENV production
ENTRYPOINT ["bin/server"]