Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/user-util-linux . /
ADD fetch/e2fsprogs-${VERSION}.tar.gz .
WORKDIR /e2fsprogs-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-elf-shlibs \
--enable-symlink-install \
--disable-fsck \
--disable-uuidd \
--disable-libuuid \
--disable-libblkid \
--disable-nls
make -j "$(nproc)"
make DESTDIR=/rootfs install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /