Set cache dir to something more accessible.
This commit is contained in:
parent
f3de145663
commit
33ac91063b
|
@ -1,3 +1,4 @@
|
||||||
target/
|
target/
|
||||||
dicebot-config
|
dicebot-config
|
||||||
todo
|
todo
|
||||||
|
cache
|
||||||
|
|
|
@ -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" ]
|
||||||
|
|
Loading…
Reference in New Issue