Dockerfile
FROM node:6
MAINTAINER Guido VilariƱo <guido@democracyos.org>
RUN npm config set python python2.7
COPY ["package.json", "/usr/src/"]
WORKDIR /usr/src
ENV NODE_ENV=production \
NODE_PATH=/usr/src
RUN npm install --quiet
COPY [".", "/usr/src/"]
RUN npm run build -- --minify
EXPOSE 3000
ONBUILD COPY ["ext", "ext"]
ONBUILD RUN bin/dos-ext-install --quiet
ONBUILD RUN npm run build -- --minify
CMD ["node", "."]