mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
16 lines
287 B
Docker
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"]
|