bzip2
Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-gcc . /
ADD fetch/bzip2-${VERSION}.tar.gz .
WORKDIR /bzip2-${VERSION}
RUN --network=none <<-EOF
set -ex
make -j "$(nproc)" -f Makefile-libbz2_so all
make -j "$(nproc)" all
make PREFIX="/rootfs/usr" install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /