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 . /
COPY --from=stagex/core-perl . /
COPY --from=stagex/core-autoconf . /
COPY --from=stagex/core-automake . /
COPY --from=stagex/core-libtool . /
COPY --from=stagex/core-m4 . /
ADD fetch/libev-${VERSION}.tar.gz .
WORKDIR /libev-${VERSION}
ENV SOURCE_DATE_EPOCH=1
RUN --network=none <<EOF
set -eux
libtoolize --force
aclocal -I m4
autoheader
autoconf
automake --add-missing
./configure \
--prefix=/usr \
--sysconfdir=/etc
make -j "$(nproc)"
make DESTDIR=/rootfs install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /