Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/user-libxdmcp . /
COPY --from=stagex/core-libxslt . /
COPY --from=stagex/core-python . /
COPY --from=stagex/user-xcb-proto . /
COPY --from=stagex/user-xorgproto . /
COPY --from=stagex/user-libxau . /
COPY --from=stagex/core-libxslt . /
COPY --from=stagex/user-util-macros . /
ADD fetch/libxcb-${VERSION}.tar.xz .
WORKDIR /libxcb-${VERSION}
RUN --network=none <<-EOF
set -eux
./configure \
--prefix=/usr \
--enable-xkb \
--enable-xinput \
--disable-xprint
make -j "$(nproc)"
make install DESTDIR=/rootfs
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /