mjolnir/Dockerfile
2019-09-25 20:13:20 -06:00

16 lines
287 B
Docker

FROM node:alpine
COPY . /tmp/src
RUN cd /tmp/src \
&& npm install \
&& npm run build \
&& mv lib/ /mjolnir/ \
&& mv node_modules / \
&& cd / \
&& rm -rf /tmp/*
ENV NODE_ENV=production
ENV NODE_CONFIG_DIR=/data/config
CMD node /mjolnir/index.js
VOLUME ["/data"]