Source

FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-llvm . /
COPY --from=stagex/core-libzstd . /
COPY --from=stagex/core-zlib . /
COPY --from=stagex/core-ncurses . /
COPY --from=stagex/core-make . /
ADD fetch/bash-${VERSION}.tar.gz .
WORKDIR /bash-${VERSION}
RUN --network=none <<-EOF
	set -eux
	./configure \
		--prefix=/usr \
		--bindir=/usr/bin \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-nls \
		--enable-readline \
		--without-bash-malloc \
		gl_cv_func_working_acl_get_file=yes \
    ac_cv_lib_error_at_line=no \
    ac_cv_header_sys_cdefs_h=no
	make -j "$(nproc)"
	make DESTDIR=/rootfs install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /
Copied to clipboard!