Skip to content

Commit 0fbf2bf

Browse files
committed
fix: remove Legacy wallet support, need build with Berkeley DB 4.8
set alpine version to 3.21
1 parent d47397b commit 0fbf2bf

File tree

1 file changed

+2
-28
lines changed

1 file changed

+2
-28
lines changed

25/alpine/Dockerfile

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,5 @@
1-
# Build stage for BerkeleyDB
2-
FROM alpine:3.20 as berkeleydb
3-
4-
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
5-
RUN apk --no-cache add autoconf
6-
RUN apk --no-cache add automake
7-
RUN apk --no-cache add build-base
8-
RUN apk --no-cache add libressl
9-
10-
ENV BERKELEYDB_VERSION=db-4.8.30.NC
11-
ENV BERKELEYDB_PREFIX=/opt/${BERKELEYDB_VERSION}
12-
13-
RUN wget https://download.oracle.com/berkeley-db/${BERKELEYDB_VERSION}.tar.gz
14-
RUN tar -xzf *.tar.gz
15-
RUN sed s/__atomic_compare_exchange/__atomic_compare_exchange_db/g -i ${BERKELEYDB_VERSION}/dbinc/atomic.h
16-
RUN mkdir -p ${BERKELEYDB_PREFIX}
17-
18-
WORKDIR /${BERKELEYDB_VERSION}/build_unix
19-
20-
RUN ../dist/configure --enable-cxx --disable-shared --with-pic --prefix=${BERKELEYDB_PREFIX} --build=aarch64-unknown-linux-gnu
21-
RUN make -j4
22-
RUN make install
23-
RUN rm -rf ${BERKELEYDB_PREFIX}/docs
24-
251
# Build stage for Bitcoin Core
26-
FROM alpine:3.20 as bitcoin-core
27-
28-
COPY --from=berkeleydb /opt /opt
2+
FROM alpine:3.21 as bitcoin-core
293

304
RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories
315
RUN apk --no-cache add autoconf
@@ -89,7 +63,7 @@ RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a
8963
RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0
9064

9165
# Build stage for compiled artifacts
92-
FROM alpine:3.20
66+
FROM alpine:3.21
9367

9468
ARG UID=100
9569
ARG GID=101

0 commit comments

Comments
 (0)