coreutils

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-openssl . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-gcc . /
ADD fetch/coreutils-${VERSION}.tar.xz .
WORKDIR /coreutils-${VERSION}
ENV FORCE_UNSAFE_CONFIGURE=1
RUN --network=none <<-EOF
	set -ex
	./configure \
		--with-build-sysroot= \
		--with-sysroot=/ \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--disable-nls \
		--with-openssl \
		--enable-single-binary=symlinks \
		--enable-single-binary-exceptions=env \
		gl_cv_func_getcwd_path_max="no, but it is partly working" \
		gl_cv_prog_perl="no"
	make -j "$(nproc)"
	make DESTDIR="/rootfs" install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /