Skip to content

Commit 97aed6d

Browse files
committed
trueblocks: relocate chifra data to /config via XDG_CONFIG_HOME
1 parent be59056 commit 97aed6d

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

trueblocks/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,12 @@ RUN apt-get update \
3434

3535
COPY --from=builder /src/bin/chifra /usr/local/bin/chifra
3636

37+
# Tell chifra to look here instead of its default $HOME/.local/share/trueblocks
38+
ENV XDG_CONFIG_HOME=/config
39+
3740
# Ship chifra's bundled per-chain configs (allocs.csv etc.) for known public
3841
# networks; without them chifra's IsNodeArchive can't validate against block 0.
39-
COPY --from=builder /src/src/other/install/per-chain /root/.local/share/trueblocks/config
42+
COPY --from=builder /src/src/other/install/per-chain /config/config
4043

4144
EXPOSE 8080
4245
ENTRYPOINT ["chifra"]

0 commit comments

Comments
 (0)