Source
FROM scratch AS build
ARG VERSION
ARG VERSION_UNDER
COPY --from=stagex/core-bash . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-gcc . /
ADD fetch/icu4c-${VERSION_UNDER}-src.tgz .
ADD fetch/icu4c-${VERSION_UNDER}-data.zip .
ADD fetch/icu4c-${VERSION_UNDER}-data-bin-l.zip .
ADD fetch/icu4c-${VERSION_UNDER}-data-bin-b.zip .
WORKDIR /icu/source
RUN --network=none <<-EOF
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man
--with-data-packaging=archive \
--disable-samples \
--enable-static
make -j "$(nproc)"
make DESTDIR=/rootfs install
install -D -m644 /icu4c-${VERSION_UNDER}-data.zip /rootfs/usr/share/icu/${VERSION}/
install -D -m644 /icu4c-${VERSION_UNDER}-data-bin-b.zip /rootfs/usr/share/icu/${VERSION}/
install -D -m644 /icu4c-${VERSION_UNDER}-data-bin-l.zip /rootfs/usr/share/icu/${VERSION}/
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs /