2019-12-05 17:42:15 +01:00
|
|
|
|
2022-09-13 10:44:49 +02:00
|
|
|
FROM python:3.10
|
2019-12-05 17:42:15 +01:00
|
|
|
|
|
|
|
|
# Installing BerkleyDB 4.8.30
|
|
|
|
|
# Ubuntu specific buw works on debian Buster as well
|
|
|
|
|
RUN apt remove libdb5.3-dev -y
|
|
|
|
|
RUN wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8++-dev_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/db4.8-util_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8-dbg_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8-dev_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8++_4.8.30-artful3_amd64.deb
|
|
|
|
|
RUN dpkg -i *.deb && rm *.deb
|
|
|
|
|
|
2022-09-13 10:44:49 +02:00
|
|
|
RUN apt update && apt install git build-essential autoconf libboost-all-dev libssl-dev libprotobuf-dev \
|
|
|
|
|
protobuf-compiler libqrencode-dev libtool libevent-dev pkg-config bsdmainutils \
|
|
|
|
|
libzmq5-dev -y
|
2019-12-05 17:42:15 +01:00
|
|
|
|
|
|
|
|
RUN git clone https://github.com/bitcoin/bitcoin.git
|
2022-09-13 10:44:49 +02:00
|
|
|
RUN cd bitcoin && git checkout v22.0
|
|
|
|
|
RUN cd bitcoin && ./autogen.sh && ./configure --without-gui && make -j8
|
2019-12-05 17:42:15 +01:00
|
|
|
RUN cd bitcoin && make install
|
|
|
|
|
|
2022-09-13 10:44:49 +02:00
|
|
|
FROM python:3.10
|
2019-12-05 17:42:15 +01:00
|
|
|
|
|
|
|
|
# Installing BerkleyDB 4.8.30
|
|
|
|
|
# Works on debian Buster as well
|
|
|
|
|
RUN apt remove libdb5.3-dev -y
|
|
|
|
|
RUN wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8++-dev_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/db4.8-util_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8-dbg_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8-dev_4.8.30-artful3_amd64.deb && \
|
|
|
|
|
wget https://launchpad.net/~bitcoin/+archive/ubuntu/bitcoin/+files/libdb4.8++_4.8.30-artful3_amd64.deb
|
|
|
|
|
RUN dpkg -i *.deb && rm *.deb
|
|
|
|
|
|
2022-09-13 10:44:49 +02:00
|
|
|
RUN apt update && apt install libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev \
|
|
|
|
|
libboost-test-dev libboost-thread-dev jq libzmq5-dev -y
|
2019-12-05 17:42:15 +01:00
|
|
|
|
|
|
|
|
COPY --from=0 /usr/local/bin/bitcoind /usr/local/bin
|
|
|
|
|
COPY --from=0 /usr/local/bin/bitcoin-cli /usr/local/bin
|
|
|
|
|
|
|
|
|
|
COPY --from=docker:latest /usr/local/bin/docker /usr/local/bin
|
|
|
|
|
|
|
|
|
|
|