Skip to content

Commit 44e4f33

Browse files
committed
Add Let's Encrypt certificate expiration workaround
1 parent 771d9b3 commit 44e4f33

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

0.11/alpine/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ RUN apk --no-cache add autoconf
3232
RUN apk --no-cache add automake
3333
RUN apk --no-cache add boost-dev
3434
RUN apk --no-cache add build-base
35+
RUN apk --no-cache add ca-certificates
3536
RUN apk --no-cache add chrpath
37+
RUN apk --no-cache add curl
3638
RUN apk --no-cache add file
3739
RUN apk --no-cache add gnupg
3840
RUN apk --no-cache add libevent-dev
@@ -53,11 +55,15 @@ RUN set -ex \
5355
gpg --batch --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" ; \
5456
done
5557

58+
# Workaround for Let's Encrypt DST Root CA X3 expiration.
59+
RUN sed -i 's#mozilla\/DST_Root_CA_X3.crt#!mozilla\/DST_Root_CA_X3.crt#g' /etc/ca-certificates.conf
60+
RUN update-ca-certificates
61+
5662
ENV BITCOIN_VERSION=0.11.2
5763
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
5864

59-
RUN wget https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc
60-
RUN wget https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}.tar.gz
65+
RUN curl -O https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc
66+
RUN curl -O https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}.tar.gz
6167
RUN gpg --verify SHA256SUMS.asc
6268
RUN grep " bitcoin-${BITCOIN_VERSION}.tar.gz\$" SHA256SUMS.asc | sha256sum -c -
6369
RUN tar -xzf *.tar.gz

0 commit comments

Comments
 (0)