Skip to content

Commit 3a84b5d

Browse files
committed
bitcoin 26.1
1 parent d71c69b commit 3a84b5d

File tree

2 files changed

+71
-1
lines changed

2 files changed

+71
-1
lines changed

.github/workflows/docker-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
env:
1010
# TODO: Change variable to your image's name.
1111
IMAGE_NAME: bitcoin
12-
VERSION: 0.25.1
12+
VERSION: 26.1
1313

1414
jobs:
1515
# Push image to GitHub Packages.

26.1 copy/Dockerfile

+70
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
FROM debian:stable-slim as builder
2+
3+
# VERSION of BItcoin Core to be build
4+
ARG VERSION=25.1
5+
6+
RUN apt-get update && apt-get install -y \
7+
build-essential \
8+
automake pkg-config \
9+
wget curl libzmq3-dev \
10+
libtool autotools-dev \
11+
bsdmainutils python3 \
12+
libsqlite3-dev libdb-dev \
13+
libdb++-dev libevent-dev \
14+
libboost-dev libboost-system-dev \
15+
libboost-filesystem-dev libboost-test-dev
16+
17+
RUN wget -qO- https://bitcoincore.org/bin/bitcoin-core-$VERSION/bitcoin-$VERSION.tar.gz | tar -xvz
18+
19+
WORKDIR /bitcoin-$VERSION
20+
21+
RUN cd ./depends && make NO_QT=1 NO_UPNP=1 && cd .. && ./autogen.sh
22+
23+
RUN ./configure \
24+
CXXFLAGS="-O2" \
25+
--disable-man \
26+
--disable-shared \
27+
--disable-ccache \
28+
--disable-tests \
29+
--enable-static \
30+
--enable-reduce-exports \
31+
--without-gui \
32+
--without-libs \
33+
--with-utils \
34+
--with-zmq \
35+
--with-sqlite=yes \
36+
--without-miniupnpc \
37+
--with-incompatible-bdb
38+
39+
RUN make clean
40+
RUN make -j$(( $(nproc) + 1 )) check
41+
RUN make install
42+
43+
RUN mv ./src/bitcoind /bitcoind && \
44+
mv ./src/bitcoin-cli /bitcoin-cli
45+
46+
FROM debian:stable-slim
47+
48+
RUN apt-get update && apt-get install -y \
49+
libboost-system-dev \
50+
libboost-filesystem-dev \
51+
libboost-thread-dev \
52+
libevent-dev \
53+
libsodium-dev \
54+
libdb-dev \
55+
libdb++-dev \
56+
libzmq3-dev \
57+
libsqlite3-dev
58+
59+
RUN useradd -ms /bin/bash bitcoin
60+
USER bitcoin
61+
62+
63+
COPY --from=builder /bitcoind /usr/local/bin/bitcoind
64+
COPY --from=builder /bitcoin-cli /usr/local/bin/bitcoin-cli
65+
66+
# Prevents `VOLUME $HOME/.bitcoin/` being created as owned by `root`
67+
RUN mkdir -p "$HOME/.bitcoin/"
68+
69+
ENTRYPOINT [ "bitcoind" ]
70+

0 commit comments

Comments
 (0)