feat: add sha256 check from vls
- ensure double check one from core maintainers and one from vls Signed-off-by: Lakshya Singh <lakshay.singh1108@gmail.com>
This commit is contained in:
parent
6ba96d6798
commit
54d076ea94
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user