mirror of
https://github.com/Retropex/docker-bitcoind.git
synced 2025-06-03 15:52:35 +02:00
60 lines
1.8 KiB
Docker
60 lines
1.8 KiB
Docker
# Build stage for Bitcoin Core
|
|
FROM alpine:3.9 AS bitcoin-core
|
|
|
|
|
|
|
|
|
|
#RUN apk --no-cache add autoconf
|
|
#RUN apk --no-cache add automake
|
|
#RUN apk --no-cache add boost-dev
|
|
#RUN apk --no-cache add build-base
|
|
#RUN apk --no-cache add chrpath
|
|
#RUN apk --no-cache add file
|
|
RUN apk --no-cache add gnupg
|
|
#RUN apk --no-cache add libevent-dev
|
|
#RUN apk --no-cache add libressl
|
|
#RUN apk --no-cache add libressl-dev
|
|
#RUN apk --no-cache add libtool
|
|
#RUN apk --no-cache add linux-headers
|
|
#RUN apk --no-cache add protobuf-dev
|
|
#RUN apk --no-cache add zeromq-dev
|
|
RUN set -ex \
|
|
&& for key in \
|
|
90C8019E36C2E964 \
|
|
; do \
|
|
gpg --keyserver pgp.mit.edu --recv-keys "$key" || \
|
|
gpg --keyserver keyserver.pgp.com --recv-keys "$key" || \
|
|
gpg --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" || \
|
|
gpg --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys "$key" ; \
|
|
done
|
|
|
|
ENV BITCOIN_VERSION=0.18.0
|
|
|
|
ARG arch
|
|
RUN wget https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/SHA256SUMS.asc
|
|
RUN wget https://bitcoin.org/bin/bitcoin-core-${BITCOIN_VERSION}/bitcoin-${BITCOIN_VERSION}-${arch}-linux-gnu.tar.gz
|
|
RUN gpg --verify SHA256SUMS.asc
|
|
RUN grep " bitcoin-${BITCOIN_VERSION}.tar.gz\$" SHA256SUMS.asc | sha256sum -c -
|
|
RUN tar -xzf *.tar.gz
|
|
|
|
RUN install -m 0755 -o root -g root -t /usr/local/bin bitcoin-${BITCOIN_VERSION}/bin/*
|
|
|
|
LABEL maintainer.0="nolim1t (@nolim1t)" \
|
|
maintainer.1="Damian Mee (@meeDamian)"
|
|
|
|
VOLUME /root/.bitcoin
|
|
|
|
COPY --from=bitcoin-core /opt /opt
|
|
|
|
# Ports:
|
|
# 8080 -
|
|
# 8332 - RPC main net
|
|
# 8333 - P2P network main net
|
|
# 18332 - RPC test net
|
|
# 18443 - RPC reg net
|
|
|
|
EXPOSE 8080 8332 8333 18332 18333 18444 28333 28332
|
|
|
|
ENTRYPOINT ["bitcoind"]
|
|
CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"]
|