Skip to content

Commit 5b51b7a

Browse files
authored
Merge pull request #91 from kylemanna/dev
release: Bump to v22.0
2 parents 720f06a + 5e11a9f commit 5b51b7a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ RUN apt update \
1414
gnupg \
1515
&& apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
1616

17-
ARG VERSION=0.21.1
17+
ARG VERSION=22.0
1818
ARG ARCH=x86_64
19-
ARG BITCOIN_CORE_SIGNATURE=01EA5486DE18A882D4C2684590C8019E36C2E964
19+
ARG BITCOIN_CORE_SIGNATURE=71A3B16735405025D447E8F274810B012346C9A6
2020

2121
# Don't use base image's bitcoin package for a few reasons:
2222
# 1. Would need to use ppa/latest repo for the latest release.
2323
# 2. Some package generates /etc/bitcoin.conf on install and that's dangerous to bake in with Docker Hub.
2424
# 3. Verifying pkg signature from main website should inspire confidence and reduce chance of surprises.
2525
# Instead fetch, verify, and extract to Docker image
2626
RUN cd /tmp \
27-
&& wget https://bitcoincore.org/bin/bitcoin-core-${VERSION}/SHA256SUMS.asc \
2827
&& gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys ${BITCOIN_CORE_SIGNATURE} \
29-
&& gpg --verify SHA256SUMS.asc \
30-
&& grep bitcoin-${VERSION}-${ARCH}-linux-gnu.tar.gz SHA256SUMS.asc > SHA25SUM \
31-
&& wget https://bitcoincore.org/bin/bitcoin-core-${VERSION}/bitcoin-${VERSION}-${ARCH}-linux-gnu.tar.gz \
32-
&& sha256sum -c SHA25SUM \
28+
&& wget https://bitcoincore.org/bin/bitcoin-core-${VERSION}/SHA256SUMS.asc \
29+
https://bitcoincore.org/bin/bitcoin-core-${VERSION}/SHA256SUMS \
30+
https://bitcoincore.org/bin/bitcoin-core-${VERSION}/bitcoin-${VERSION}-${ARCH}-linux-gnu.tar.gz \
31+
&& gpg --verify --status-fd 1 --verify SHA256SUMS.asc SHA256SUMS 2>/dev/null | grep "^\[GNUPG:\] VALIDSIG.*${BITCOIN_CORE_SIGNATURE}\$" \
32+
&& sha256sum --ignore-missing --check SHA256SUMS \
3333
&& tar -xzvf bitcoin-${VERSION}-${ARCH}-linux-gnu.tar.gz -C /opt \
3434
&& ln -sv bitcoin-${VERSION} /opt/bitcoin \
3535
&& /opt/bitcoin/bin/test_bitcoin --show_progress \

0 commit comments

Comments
 (0)