diff --git a/bitcoind/Dockerfile b/bitcoind/Dockerfile index 1abcb1c..d0753d3 100644 --- a/bitcoind/Dockerfile +++ b/bitcoind/Dockerfile @@ -3,7 +3,6 @@ FROM --platform=${TARGETPLATFORM:-${BUILDPLATFORM}} alpine:3.18 as bitcoin-core ARG TARGETPLATFORM - RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories RUN apk add \ autoconf \ @@ -49,11 +48,13 @@ RUN set -ex \ ENV BITCOIN_VERSION=23.0 ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION} +ARG SHA256SUMS_HASH=aaff81ea001f499e8f6f3221387d7db960d71a3b7a4a2b1aaf2c8060bc94a391 RUN wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS RUN wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc RUN wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}.tar.gz RUN gpg --verify SHA256SUMS.asc SHA256SUMS +RUN echo "${SHA256SUMS_HASH} SHA256SUMS" | sha256sum -c - RUN grep " bitcoin-${BITCOIN_VERSION}.tar.gz\$" SHA256SUMS | sha256sum -c - RUN tar -xzf *.tar.gz