mjolnir/Dockerfile

16 lines
288 B
Docker
Raw Normal View History

FROM node:16-alpine
2019-09-25 22:13:20 -04:00
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"]