Damian Mee
5 years ago
6 changed files with 108 additions and 220 deletions
@ -1,54 +0,0 @@ |
|||
FROM partial-bitcoind-amd64 |
|||
|
|||
RUN make check |
|||
RUN make install |
|||
|
|||
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-wallet |
|||
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli |
|||
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-tx |
|||
RUN strip ${BITCOIN_PREFIX}/bin/bitcoind |
|||
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a |
|||
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0 |
|||
|
|||
|
|||
# Build stage for compiled artifacts |
|||
FROM alpine:3.10 AS final |
|||
|
|||
LABEL maintainer.0="nolim1t (@nolim1t)" \ |
|||
maintainer.1="Damian Mee (@meeDamian)" |
|||
|
|||
ENV LC_ALL=C.UTF-8 |
|||
|
|||
# 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 \ |
|||
add \ |
|||
boost \ |
|||
boost-program_options \ |
|||
libevent \ |
|||
libressl \ |
|||
libzmq \ |
|||
su-exec |
|||
|
|||
ENV BITCOIN_VERSION=0.18.1 |
|||
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION} |
|||
ENV PATH=${BITCOIN_PREFIX}/bin:$PATH |
|||
|
|||
VOLUME /root/.bitcoin |
|||
|
|||
COPY --from=bitcoin-core /opt /opt |
|||
|
|||
# REST interface |
|||
EXPOSE 8080 |
|||
|
|||
# P2P network (mainnet, testnet & regnet respectively) |
|||
EXPOSE 8333 18333 18444 |
|||
|
|||
# RPC interface (mainnet, testnet & regnet respectively) |
|||
EXPOSE 8332 18332 18443 |
|||
|
|||
# ZMQ ports (for transactions & blocks respectively) |
|||
EXPOSE 28332 28333 |
|||
|
|||
ENTRYPOINT ["bitcoind"] |
|||
CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"] |
@ -1,54 +0,0 @@ |
|||
FROM partial-bitcoind-arm |
|||
|
|||
RUN make check |
|||
RUN make install |
|||
|
|||
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-wallet |
|||
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-cli |
|||
RUN strip ${BITCOIN_PREFIX}/bin/bitcoin-tx |
|||
RUN strip ${BITCOIN_PREFIX}/bin/bitcoind |
|||
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a |
|||
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0 |
|||
|
|||
|
|||
# Build stage for compiled artifacts |
|||
FROM arm32v7/alpine:3.10 AS final |
|||
|
|||
LABEL maintainer.0="nolim1t (@nolim1t)" \ |
|||
maintainer.1="Damian Mee (@meeDamian)" |
|||
|
|||
ENV LC_ALL=C.UTF-8 |
|||
|
|||
# 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 \ |
|||
add \ |
|||
boost \ |
|||
boost-program_options \ |
|||
libevent \ |
|||
libressl \ |
|||
libzmq \ |
|||
su-exec |
|||
|
|||
ENV BITCOIN_VERSION=0.18.1 |
|||
ENV BITCOIN_PREFIX=/opt/bitcoin-${BITCOIN_VERSION} |
|||
ENV PATH=${BITCOIN_PREFIX}/bin:$PATH |
|||
|
|||
VOLUME /root/.bitcoin |
|||
|
|||
COPY --from=bitcoin-core /opt /opt |
|||
|
|||
# REST interface |
|||
EXPOSE 8080 |
|||
|
|||
# P2P network (mainnet, testnet & regnet respectively) |
|||
EXPOSE 8333 18333 18444 |
|||
|
|||
# RPC interface (mainnet, testnet & regnet respectively) |
|||
EXPOSE 8332 18332 18443 |
|||
|
|||
# ZMQ ports (for transactions & blocks respectively) |
|||
EXPOSE 28332 28333 |
|||
|
|||
ENTRYPOINT ["bitcoind"] |
|||
CMD ["bitcoind", "-zmqpubrawblock=tcp://0.0.0.0:28332", "-zmqpubrawtx=tcp://0.0.0.0:28333"] |
Loading…
Reference in new issue