move bitcoind VOLUME directive to the right place

This commit is contained in:
Devrandom authored and Lakshya Singh committed 2023-10-24 20:54:52 +05:30
1 parent 03133256c8
commit f287ce61c5
1 file changed
+3 -3
+3 -3
View File
@@ -122,10 +122,10 @@ COPY assets/bitcoin.conf /bitcoin.conf
COPY bitcoind/healthcheck.sh /healthcheck.sh
RUN chmod +x /healthcheck.sh
VOLUME ["${BITCOIN_DATA}"]
RUN mkdir "${BITCOIN_DATA}"
RUN chown bitcoin:bitcoin "${BITCOIN_DATA}"
RUN mkdir -p "${BITCOIN_DATA}"
RUN chown -R bitcoin:bitcoin "${BITCOIN_DATA}"
VOLUME ["${BITCOIN_DATA}"]
USER bitcoin