Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/core-bash . /
COPY --from=stagex/user-xtrans . /
COPY --from=stagex/user-xorgproto . /
COPY --from=stagex/user-util-macros . /
COPY --from=stagex/user-xmlto . /
ADD fetch/libICE-${VERSION}.tar.xz .
WORKDIR /libICE-${VERSION}
ENV SOURCE_DATE_EPOCH=1
RUN --network=none <<-EOF
set -eux
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--enable-ipv6 \
--enable-docs \
--with-xmlto \
--without-fop
make -j "$(nproc)"
make install DESTDIR=/rootfs
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /