nftables
Source
FROM stagex/pallet-clang-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/core-gmp . /
COPY --from=stagex/core-ncurses . /
COPY --from=stagex/core-libedit . /
COPY --from=stagex/user-libnftnl . /
COPY --from=stagex/user-libmnl . /
COPY --from=stagex/user-jansson . /
ADD fetch/nftables-${VERSION}.tar.xz .
WORKDIR /nftables-${VERSION}
RUN --network=none <<-EOF
./configure \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--with-cli=editline \
--with-json \
--enable-static
make
make install DESTDIR=/rootfs
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /Copied to clipboard!