bc

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-coreutils . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-gcc . /
COPY --from=stagex/core-openssl . /
COPY --from=stagex/core-tar . /
COPY --from=stagex/core-ed . /
COPY --from=stagex/core-grep . /
COPY --from=stagex/core-gzip . /
COPY --from=stagex/core-bison . /
COPY --from=stagex/core-flex . /
COPY --from=stagex/core-gawk . /
COPY --from=stagex/core-perl . /
COPY --from=stagex/core-texinfo . /
COPY --from=stagex/core-findutils . /
COPY --from=stagex/core-sed . /
COPY --from=stagex/core-bash . /
COPY --from=stagex/core-bash /bin/bash /bin/sh
ADD fetch/bc-${VERSION}.tar.gz .
WORKDIR /bc-${VERSION}
RUN --network=none <<-EOF
	set -ex
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make -j1
	make DESTDIR="/rootfs" install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /