forked from Merkleize/docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (22 loc) · 979 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
FROM ubuntu:20.04 AS builder
ENV DEBIAN_FRONTEND=non-interactive
RUN apt-get update && apt-get install -y \
automake autotools-dev bsdmainutils build-essential ccache git libboost-dev \
libboost-filesystem-dev libboost-system-dev libboost-test-dev libevent-dev \
libminiupnpc-dev libnatpmp-dev libsqlite3-dev libtool libzmq3-dev pkg-config \
python3 systemtap-sdt-dev
RUN git clone -b mattplus https://github.com/Merkleize/bitcoin /bitcoin
WORKDIR /bitcoin
RUN ./autogen.sh
RUN ./configure --without-bdb --with-gui=no
RUN make -j$(nproc)
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=non-interactive
# Only install what we need at runtime
RUN apt-get update && apt-get install -y \
libminiupnpc-dev libnatpmp-dev libevent-dev libzmq3-dev libsqlite3-dev
COPY --from=builder /bitcoin/src/bitcoind /usr/local/bin/
COPY --from=builder /bitcoin/src/bitcoin-cli /usr/local/bin/
EXPOSE 18443 18444
VOLUME /root/.bitcoin
ENTRYPOINT ["bitcoind", "-printtoconsole"]