|
|
@ -34,7 +34,7 @@ RUN set -ex \ |
|
|
|
gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" ; \ |
|
|
|
done |
|
|
|
|
|
|
|
ENV BITCOIN_VERSION=0.18.0 |
|
|
|
ENV BITCOIN_VERSION=0.18.1 |
|
|
|
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION} |
|
|
|
|
|
|
|
# Download checksums (intentionally different source than source code) |
|
|
@ -63,17 +63,15 @@ RUN sed -i '/AX_PROG_CC_FOR_BUILD/a\AR_FLAGS=cr' src/secp256k1/configure.ac |
|
|
|
RUN sed -i s:sys/fcntl.h:fcntl.h: src/compat.h |
|
|
|
|
|
|
|
RUN ./autogen.sh |
|
|
|
RUN ./configure LDFLAGS=-L`ls -d /opt/db*`/lib/ CPPFLAGS=-I`ls -d /opt/db*`/include/ \ |
|
|
|
RUN ./configure LDFLAGS=-L$(ls -d /opt/db*)/lib/ CPPFLAGS=-I$(ls -d /opt/db*)/include/ \ |
|
|
|
--prefix=${BITCOIN_PREFIX} \ |
|
|
|
--mandir=/usr/share/man \ |
|
|
|
--disable-tests \ |
|
|
|
--disable-bench \ |
|
|
|
--disable-ccache \ |
|
|
|
--with-gui=no \ |
|
|
|
--with-utils \ |
|
|
|
--with-libs \ |
|
|
|
--with-daemon |
|
|
|
RUN make |
|
|
|
RUN make check |
|
|
|
RUN make install |
|
|
|
|
|
|
|
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli |
|
|
@ -89,7 +87,6 @@ FROM arm32v7/alpine:3.10 AS final |
|
|
|
LABEL maintainer.0="nolim1t (@nolim1t)" \ |
|
|
|
maintainer.1="Damian Mee (@meeDamian)" |
|
|
|
|
|
|
|
# TODO: Eliminating the two RUN lines below is crucial to make cross-compilation possible… |
|
|
|
# Use APK repos over HTTPS. See: https://github.com/gliderlabs/docker-alpine/issues/184 |
|
|
|
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories |
|
|
|
RUN apk --no-cache --update \ |
|
|
@ -101,7 +98,7 @@ RUN apk --no-cache --update \ |
|
|
|
libzmq \ |
|
|
|
su-exec |
|
|
|
|
|
|
|
ENV BITCOIN_VERSION=0.18.0 |
|
|
|
ENV BITCOIN_VERSION=0.18.1 |
|
|
|
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION} |
|
|
|
ENV PATH=${BITCOIN_PREFIX}/bin:$PATH |
|
|
|
|
|
|
|