diff options
mascara - ready to deploy via docker
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..d06f5377b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,22 @@ +FROM node:6 +MAINTAINER kumavis + +# setup app dir +RUN mkdir -p /www/ +WORKDIR /www/ + +# install dependencies +COPY ./package.json /www/package.json +RUN npm install + +# copy over app dir +COPY ./ /www/ + +# run tests +# RUN npm test + +# build app +RUN npm run dist + +# start server +CMD node mascara/example/server.js |