@@ -8,8 +8,6 @@ FROM alpine:3.12 as bitcoin-core
88
99COPY --from=berkeleydb /opt /opt
1010
11- COPY ./SHA256SUMS.asc.patch SHA256SUMS.asc.patch
12-
1311RUN sed -i 's/http\:\/\/ dl-cdn.alpinelinux.org/https\:\/\/ alpine.global.ssl.fastly.net/g' /etc/apk/repositories
1412RUN apk --no-cache add autoconf
1513RUN apk --no-cache add automake
@@ -22,7 +20,6 @@ RUN apk --no-cache add libevent-dev
2220RUN apk --no-cache add libressl
2321RUN apk --no-cache add libtool
2422RUN apk --no-cache add linux-headers
25- # RUN apk --no-cache add sqlite-libs
2623RUN apk --no-cache add sqlite-dev
2724RUN apk --no-cache add zeromq-dev
2825RUN set -ex \
@@ -84,9 +81,9 @@ AEC1884398647C47413C1C3FB1179EB7347DC10D \
848171A3B16735405025D447E8F274810B012346C9A6 \
8582287AE4CA1187C68C08B49CB2D11BD4F33F1DB499 \
8683F9A8737BF4FF5C89C903DF31DD78544CF91B1514 \
87- # C388F6961FB972A95678E327F62711DBDCA8AE56 \
88844DAF18FE948E7A965B30F9457E296D555E7F63A7 \
898528E72909F1717FE9607754F8A7BEB2621678D37D \
86+ F19F5FF2B0589EC341220045BA03F4DBE0C63FB4 \
9087 ; do \
9188 gpg --batch --keyserver hkps://keyserver.ubuntu.com --recv-keys "$key" || \
9289 gpg --batch --keyserver hkps://pgp.mit.edu --recv-keys "$key" || \
@@ -103,16 +100,13 @@ ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION}
103100RUN wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS
104101RUN wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc
105102RUN wget https://bitcoincore.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}.tar.gz
106- RUN patch -u SHA256SUMS.asc -i SHA256SUMS.asc.patch
107103RUN gpg --verify SHA256SUMS.asc
108104RUN grep " bitcoin-${BITCOIN_VERSION}.tar.gz\$ " SHA256SUMS | sha256sum -c -
109105RUN tar -xzf *.tar.gz
110106
111107WORKDIR /bitcoin-${BITCOIN_VERSION}
112108
113- RUN sed -i '/AC_PREREQ/a\A R_FLAGS=cr' src/univalue/configure.ac
114109RUN sed -i '/AX_PROG_CC_FOR_BUILD/a\A R_FLAGS=cr' src/secp256k1/configure.ac
115- RUN sed -i s:sys/fcntl.h:fcntl.h: src/compat.h
116110RUN ./autogen.sh
117111RUN ./configure LDFLAGS=-L`ls -d /opt/db*`/lib/ CPPFLAGS=-I`ls -d /opt/db*`/include/ \
118112 # If building on Mac make sure to increase Docker VM memory, or uncomment this line. See https://github.com/bitcoin/bitcoin/issues/6658 for more info.
@@ -128,9 +122,7 @@ RUN ./configure LDFLAGS=-L`ls -d /opt/db*`/lib/ CPPFLAGS=-I`ls -d /opt/db*`/incl
128122 --with-daemon
129123RUN make -j$(($(nproc) - 1))
130124RUN make install
131- RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli
132- RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-tx
133- RUN strip ${BITCOIN_PREFIX}/bin/bitcoind
125+ RUN strip ${BITCOIN_PREFIX}/bin/*
134126RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
135127RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
136128
0 commit comments