Source
FROM stagex/pallet-gcc-meson-busybox AS build
ARG VERSION
COPY --from=stagex/core-pcre2 . /
COPY --from=stagex/core-libxslt . /
COPY --from=stagex/core-expat . /
COPY --from=stagex/core-libxml2 . /
COPY --from=stagex/core-libxslt . /
COPY --from=stagex/core-gettext . /
COPY --from=stagex/user-rhash . /
COPY --from=stagex/user-util-linux . /
ADD fetch/fuse3-${VERSION}.tar.gz .
WORKDIR /fuse-${VERSION}
COPY *.patch .
RUN --network=none <<-EOF
set -eux
meson setup \
--default-library=shared \
--prefix=/usr \
-Dinitscriptdir="" \
. output
meson compile -C output
DESTDIR=/rootfs meson install --no-rebuild -C output
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /