FROM almalinux:9 as installer RUN dnf -y install dnf-plugin-config-manager \ && dnf config-manager --set-enabled crb \ && dnf -y install epel-release RUN dnf install \ --installroot /fakeroot \ --releasever 9 \ --setopt install_weak_deps=false \ --nodocs -y \ git-tools \ && dnf module install \ --installroot /fakeroot \ --releasever 9 \ --setopt install_weak_deps=false \ --nodocs -y \ nodejs:22 \ && dnf clean all --installroot /fakeroot RUN curl -L -o pandoc.tar.gz https://github.com/jgm/pandoc/releases/download/3.6.3/pandoc-3.6.3-linux-amd64.tar.gz \ && tar -xvf pandoc.tar.gz \ && cp pandoc*/bin/pandoc /fakeroot/usr/local/bin/pandoc FROM scratch COPY --from=installer /fakeroot / RUN npm install -g pnpm \ && npm cache clean --force