From db66dc2bed77db745e818cfa84ce185e1f444977 Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Fri, 13 Feb 2026 21:44:29 -0500 Subject: [PATCH] add volume --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index cc8d10c..caa2c5f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,6 +51,12 @@ WORKDIR /data # expose the default relay port EXPOSE 4001 +# persist keypair and data to the volume-mounted /data directory +# XDG_DATA_HOME tells the directories crate to resolve paths under /data +# so the keypair ends up at /data/dusk-relay/keypair instead of ~/.local/share +ENV XDG_DATA_HOME=/data +VOLUME /data + # set environment variables ENV RUST_LOG=info ENV DUSK_RELAY_PORT=4001