Files
n_os_tr/stack/build-common/Dockerfile.alpine-musl
Laan Tungir 6e2164abe5 [WARNING] No existing semantic tags found. Starting from v0.0.0
v0.0.1 - Reorganize ISO build tree, add docs/plans/scripts, and stage Phase 2 Slice B+C service integration artifacts
2026-04-29 13:09:28 -04:00

33 lines
791 B
Docker

FROM alpine:3.19 AS base
RUN apk add --no-cache \
build-base \
musl-dev \
git \
cmake \
autoconf \
automake \
libtool \
pkgconf \
openssl-dev \
openssl-libs-static \
zlib-dev \
zlib-static \
curl-dev \
curl-static \
libsecp256k1-dev \
sqlite-dev \
sqlite-static
# Alpine provides libsecp256k1 shared objects, but we need a static archive
# for fully-static musl linking. Build and install libsecp256k1.a in /usr/local.
RUN git clone --depth 1 https://github.com/bitcoin-core/secp256k1.git /tmp/secp256k1 && \
cd /tmp/secp256k1 && \
./autogen.sh && \
./configure --enable-static --disable-shared --prefix=/usr/local && \
make -j"$(nproc)" && \
make install && \
rm -rf /tmp/secp256k1
WORKDIR /src