Skip to content

Commit 2376f77

Browse files
authored
Merge pull request #43 from willcl-ark/capnproto-updates
2 parents 0a54fd5 + c0ccace commit 2376f77

File tree

2 files changed

+21
-10
lines changed

2 files changed

+21
-10
lines changed

master/Dockerfile

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
1-
FROM debian:bookworm-slim AS build
1+
FROM debian:trixie-slim AS build
22

33
LABEL maintainer.0="Will Clark (@willcl-ark)"
44

5-
RUN apt-get update -y \
6-
&& apt-get install -y \
5+
RUN apt-get update --yes \
6+
&& apt-get install --yes --no-install-recommends \
77
build-essential \
88
ca-certificates \
9+
capnproto \
910
ccache \
10-
clang-16 \
11+
clang-19 \
1112
cmake \
1213
git \
1314
libboost-dev \
15+
libcapnp-dev \
1416
libevent-dev \
1517
libsqlite3-dev \
1618
libzmq3-dev \
1719
pkg-config \
1820
python3 \
1921
systemtap-sdt-dev \
20-
--no-install-recommends \
2122
&& apt-get clean \
2223
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
2324

@@ -40,16 +41,16 @@ RUN set -ex \
4041
-DBUILD_TX=ON \
4142
-DBUILD_UTIL=OFF \
4243
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
43-
-DCMAKE_CXX_COMPILER=clang++-16 \
44-
-DCMAKE_C_COMPILER=clang-16 \
44+
-DCMAKE_CXX_COMPILER=clang++-19 \
45+
-DCMAKE_C_COMPILER=clang-19 \
4546
-DCMAKE_INSTALL_PREFIX:PATH="${BITCOIN_PREFIX}" \
4647
-DWITH_CCACHE=ON \
4748
&& cmake --build build -j$(nproc) \
4849
&& strip build/bin/bitcoin-cli build/bin/bitcoin-tx build/bin/bitcoind \
4950
&& cmake --install build
5051

5152
# Second stage
52-
FROM debian:bookworm-slim
53+
FROM debian:trixie-slim
5354

5455
ARG UID=101
5556
ARG GID=101
@@ -58,8 +59,15 @@ ENV BITCOIN_DATA=/home/bitcoin/.bitcoin
5859

5960
RUN groupadd --gid ${GID} bitcoin \
6061
&& useradd --create-home --no-log-init -u ${UID} -g ${GID} bitcoin \
61-
&& apt-get update -y \
62-
&& apt-get install -y gosu libevent-dev libboost-dev libsqlite3-dev libzmq3-dev systemtap-sdt-dev --no-install-recommends \
62+
&& apt-get update --yes \
63+
&& apt-get install --yes --no-install-recommends \
64+
capnproto \
65+
gosu \
66+
libboost-dev \
67+
libevent-dev \
68+
libsqlite3-dev \
69+
libzmq3-dev \
70+
systemtap-sdt-dev \
6371
&& apt-get clean \
6472
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
6573

master/alpine/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ FROM alpine:3.21 AS build
44
RUN apk --no-cache add \
55
boost-dev \
66
build-base \
7+
capnproto \
8+
capnproto-dev \
79
ccache \
810
chrpath \
911
clang18 \
@@ -53,6 +55,7 @@ RUN addgroup --gid ${GID} --system bitcoin && \
5355
adduser --uid ${UID} --system bitcoin --ingroup bitcoin
5456
RUN apk --no-cache add \
5557
bash \
58+
capnproto \
5659
libevent \
5760
libzmq \
5861
shadow \

0 commit comments

Comments
 (0)