diff --git a/Containerfile b/Containerfile index a479035..d7e443b 100644 --- a/Containerfile +++ b/Containerfile @@ -51,9 +51,11 @@ COPY --from=builder /build/target/release/electrs /usr/bin/electrs RUN adduser --system --group --disabled-password --home /electrs electrs +RUN mkdir -p /etc/electrs + USER electrs -RUN mkdir -p /electrs/db /electrs/.bitcoin +RUN mkdir -p /electrs/db /electrs/.bitcoin /electrs/.electrs # Data directory VOLUME /electrs/db @@ -61,6 +63,9 @@ VOLUME /electrs/db # Bitcoin daemon data VOLUME /electrs/.bitcoin +# Config directories +VOLUME /etc/electrs /electrs/.electrs + # Electrum RPC - Mainnet EXPOSE 50001