Files
Draupnir/Dockerfile
Marcel b38a4159a9 Bump the dockerfile to node 20 (#129)
* Bump the CI and dockerfile to node 20

* Revert bumping the CI
2023-09-13 22:05:31 +01:00

21 lines
484 B
Docker

# 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"]