forked from KeychainMDIP/bitcoin-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
20 lines (20 loc) · 847 Bytes
/
Dockerfile
File metadata and controls
20 lines (20 loc) · 847 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ubuntu:22.04
RUN \
apt-get update && \
apt-get install -y software-properties-common && \
apt-get install -y apt-utils && \
apt-get install -y git vim less python3 && \
apt-get install -y build-essential libtool autotools-dev automake pkg-config bsdmainutils && \
apt-get install -y libboost-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev libboost-thread-dev && \
apt-get install -y libssl-dev libevent-dev libsqlite3-dev libminiupnpc-dev libzmq3-dev
RUN git clone --depth 1 --branch v28.0 https://github.com/bitcoin/bitcoin.git
WORKDIR /bitcoin
RUN ./autogen.sh
RUN ./configure --enable-wallet --disable-tests --disable-bench
RUN make
RUN make install
RUN strip /usr/local/bin/bitcoin*
RUN rm -rf /bitcoin
WORKDIR /root
RUN mkdir /root/.bitcoin
CMD ["bitcoind", "-printtoconsole"]