diff --git a/docker/bitcoind/Dockerfile b/docker/bitcoind/Dockerfile index 7bc021f..cdc1817 100644 --- a/docker/bitcoind/Dockerfile +++ b/docker/bitcoind/Dockerfile @@ -6,11 +6,13 @@ WORKDIR /shkeeper COPY ./walletnotify.sh . +ARG BITCOIN_VERSION + RUN chmod +x walletnotify.sh \ - && curl -L https://bitcoin.org/bin/bitcoin-core-22.0/bitcoin-22.0-x86_64-linux-gnu.tar.gz -o bitcoin.tar.gz \ + && curl -L https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-x86_64-linux-gnu.tar.gz -o bitcoin.tar.gz \ && tar -xzvf bitcoin.tar.gz \ - && cp bitcoin-22.0/bin/bitcoind bitcoin-22.0/bin/bitcoin-cli . \ - && rm -rf bitcoin.tar.gz bitcoin-22.0 + && cp bitcoin-${BITCOIN_VERSION}/bin/bitcoind bitcoin-${BITCOIN_VERSION}/bin/bitcoin-cli . \ + && rm -rf bitcoin.tar.gz bitcoin-${BITCOIN_VERSION} CMD /shkeeper/bitcoind \ -prune=550 \ @@ -19,4 +21,7 @@ CMD /shkeeper/bitcoind \ -rpcbind=0.0.0.0 \ -rpcallowip=0.0.0.0/0 \ -wallet=shkeeper \ - -walletnotify='/shkeeper/walletnotify.sh %s' \ No newline at end of file + -walletnotify='/shkeeper/walletnotify.sh %s' + +# BITCOIN_VERSION=27.0 +# docker build --build-arg BITCOIN_VERSION=$BITCOIN_VERSION -t vsyshost/bitcoind:$BITCOIN_VERSION . \ No newline at end of file