mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-04-25 07:22:07 +00:00
* Rename to Draupnir in Appropriate Places * Integrate Code review feedback on CHANGELOG.md
26 lines
638 B
Docker
26 lines
638 B
Docker
# Copyright 2024 Gnuxie <Gnuxie@protonmail.com>
|
|
# Copyright 2019 The Matrix.org Foundation C.I.C.
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0 AND AFL-3.0
|
|
|
|
# We can't use alpine anymore because crypto has rust deps.
|
|
FROM node:20-slim
|
|
COPY . /tmp/src
|
|
RUN cd /tmp/src \
|
|
&& yarn install --network-timeout 100000 \
|
|
&& yarn build \
|
|
&& mv lib/ /draupnir/ \
|
|
&& mv node_modules / \
|
|
&& mv draupnir-entrypoint.sh / \
|
|
&& mv package.json / \
|
|
&& mv version.txt / \
|
|
&& cd / \
|
|
&& rm -rf /tmp/*
|
|
|
|
ENV NODE_ENV=production
|
|
ENV NODE_CONFIG_DIR=/data/config
|
|
|
|
CMD ["bot"]
|
|
ENTRYPOINT ["./draupnir-entrypoint.sh"]
|
|
VOLUME ["/data"]
|