mirror of
https://github.com/c0mmando/hackliberty-conf.git
synced 2024-12-29 09:26:19 -05:00
19 lines
406 B
Docker
19 lines
406 B
Docker
# We can't use alpine anymore because crypto has rust deps.
|
|
FROM node:16-slim
|
|
COPY . /tmp/src
|
|
RUN cd /tmp/src \
|
|
&& yarn install \
|
|
&& yarn build \
|
|
&& mv lib/ /mjolnir/ \
|
|
&& mv node_modules / \
|
|
&& mv mjolnir-entrypoint.sh / \
|
|
&& cd / \
|
|
&& rm -rf /tmp/*
|
|
|
|
ENV NODE_ENV=production
|
|
ENV NODE_CONFIG_DIR=/data/config
|
|
|
|
CMD ["bot"]
|
|
ENTRYPOINT ["./mjolnir-entrypoint.sh"]
|
|
VOLUME ["/data"]
|