mjolnir/Dockerfile

16 lines
285 B
Docker
Raw Permalink Normal View History

2019-09-25 22:13:20 -04:00
FROM node:alpine
COPY . /tmp/src
RUN cd /tmp/src \
2019-10-31 12:55:44 -04:00
&& yarn install \
&& yarn build \
2019-09-25 22:13:20 -04:00
&& 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"]