mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-09-05 09:02:20 +00:00
![gnuxie](/assets/img/avatar_default.png)
Needed to merge https://github.com/matrix-org/mjolnir/pull/186 & node 12 is approaching EOL.
16 lines
288 B
Docker
16 lines
288 B
Docker
FROM node:14-alpine
|
|
COPY . /tmp/src
|
|
RUN cd /tmp/src \
|
|
&& yarn install \
|
|
&& yarn 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"]
|