mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-04-02 04:15:39 +00:00
We have a lot of verbose headers, and i think now is the best opportunity we have to become reuse compliant given that we just did two other similar maintenance changes (prettier, typescirpt5 & eslint9 & typescript-eslint). * synapse_antispam resuse headers. * delete old unused tslint.json. * Add REUSE to pre-commit config. * reuse info for config directory.
26 lines
635 B
Docker
26 lines
635 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/ /mjolnir/ \
|
|
&& mv node_modules / \
|
|
&& mv mjolnir-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 ["./mjolnir-entrypoint.sh"]
|
|
VOLUME ["/data"]
|