lmdb
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-llvm . /
COPY --from=stagex/core-libzstd . /
COPY --from=stagex/core-zlib . /
COPY --from=stagex/core-bash . /
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-openssl . /
ADD fetch/lmdb-${VERSION}.tar.gz .
WORKDIR /openldap-LMDB_${VERSION}/libraries/liblmdb
COPY *.patch .
RUN --network=none <<-EOF
set -eux
ln -s /usr/bin/clang /usr/bin/gcc
patch -p1 lmdb-make.patch
export CFLAGS="-O2 -fPIC"
make -j "$(nproc)"
make DESTDIR=/rootfs install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /Copied to clipboard!