libseccomp

Details
Source
FROM stagex/pallet-gcc-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/pallet-cython . /
COPY --from=stagex/user-gperf . /
ADD fetch/libseccomp-${VERSION}.tar.gz .
WORKDIR /libseccomp-${VERSION}
RUN --network=none <<-EOF
	set -eux
	./configure \
		--prefix=/usr \
		--infodir=/usr/share/info \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--enable-python \
		--enable-static
	make -j "$(nproc)"
	make DESTDIR=/rootfs install
	find /rootfs | grep -E "(/__pycache__$|\.pyc$|\.pyo$)" | xargs rm -rf
	rm /rootfs/usr/lib/python3.11/site-packages/install_files.txt
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /