-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
35 lines (23 loc) · 825 Bytes
/
Dockerfile
File metadata and controls
35 lines (23 loc) · 825 Bytes
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
35
FROM ubuntu:24.04 AS builder
ENV DEBIAN_FRONTEND=non-interactive
RUN apt-get update && apt-get install -y \
git \
build-essential cmake pkgconf python3 \
libevent-dev libboost-dev \
libsqlite3-dev \
libcapnp-dev capnproto \
libzmq3-dev
RUN git clone -b inq-ccv https://github.com/Merkleize/bitcoin /bitcoin
WORKDIR /bitcoin
RUN cmake -B build
RUN cmake --build build -j$(nproc)
FROM ubuntu:24.04
ENV DEBIAN_FRONTEND=non-interactive
# Only install what we need at runtime
RUN apt-get update && apt-get install -y \
libevent-dev libzmq3-dev libsqlite3-dev
COPY --from=builder /bitcoin/build/bin/bitcoind /usr/local/bin/
COPY --from=builder /bitcoin/build/bin/bitcoin-cli /usr/local/bin/
EXPOSE 18443 18444
COPY bitcoin.conf /root/.bitcoin/bitcoin.conf
CMD ["bitcoind", "-printtoconsole"]