aboutsummaryrefslogblamecommitdiffstats
path: root/Dockerfile
blob: f9ec6293589ae6150982188b08827f3233d671ca (plain) (tree)
1
2
3
4
5
6
7
8
9
           







                                     



                                              











                                  
FROM node:7
MAINTAINER kumavis

# setup app dir
RUN mkdir -p /www/
WORKDIR /www/

# install dependencies
COPY ./package.json /www/package.json
# RUN npm install -g node-gyp
RUN npm install >> npm_log 2>> npm_err || true

RUN cat npm_log && cat npm_err

# 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