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/ target/
dicebot-config dicebot-config
todo todo
cache

View File

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