Files
Draupnir/Dockerfile
T
Marcel 8894e29606 Multiarch CI fixes (#59)
* Also build arm images

* Increase docker timeout for qemu and install missing parts in CI for multiplatform building
2023-06-12 23:34:38 +01:00

21 lines
484 B
Docker

# We can't use alpine anymore because crypto has rust deps.
FROM node:18-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"]