|
1 | | -# Build stage for BerkeleyDB |
2 | | -FROM alpine 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 | | - |
25 | 1 | # Build stage for Bitcoin Core |
26 | | -FROM alpine as bitcoin-core |
27 | | - |
28 | | -COPY --from=berkeleydb /opt /opt |
| 2 | +FROM alpine:3.21 as bitcoin-core |
29 | 3 |
|
30 | 4 | RUN sed -i 's/http\:\/\/dl-cdn.alpinelinux.org/https\:\/\/alpine.global.ssl.fastly.net/g' /etc/apk/repositories |
31 | 5 | RUN apk --no-cache add autoconf |
@@ -89,7 +63,7 @@ RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.a |
89 | 63 | RUN strip ${BITCOIN_PREFIX}/lib/libbitcoinconsensus.so.0.0.0 |
90 | 64 |
|
91 | 65 | # Build stage for compiled artifacts |
92 | | -FROM alpine |
| 66 | +FROM alpine:3.21 |
93 | 67 |
|
94 | 68 | ARG UID=100 |
95 | 69 | ARG GID=101 |
|
0 commit comments