Set cache dir to something more accessible.

This commit is contained in:
projectmoon 2020-08-27 19:44:16 +00:00
parent f3de145663
commit 33ac91063b
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
target/
dicebot-config
todo
cache

View File

@ -25,11 +25,13 @@ RUN . /root/.cargo/env && cargo build --release
# Final image
FROM bougyman/voidlinux:latest
RUN xbps-install -Sy ca-certificates libstdc++ libressl
RUN xbps-install -Sy ca-certificates libstdc++
COPY --from=builder \
/root/src/target/release/dicebot \
/usr/local/bin/
COPY --from=builder \
/usr/local/bin/tini \
/usr/local/bin/
ENV XDG_CACHE_HOME "/cache"
ENTRYPOINT [ "/usr/local/bin/tini", "-v", "--", "/usr/local/bin/dicebot", "/config/dicebot-config.toml" ]