docker-node-pandoc/Dockerfile

22 lines
689 B
Text
Raw Permalink Normal View History

2023-12-09 22:50:23 +08:00
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 \
nodejs npm git-tools \
&& dnf clean all --installroot /fakeroot
RUN curl -L -o pandoc-3.1.9.tar.gz https://github.com/jgm/pandoc/releases/download/3.1.9/pandoc-3.1.9-linux-amd64.tar.gz \
&& tar -xvf pandoc-3.1.9.tar.gz \
&& cp pandoc-3.1.9/bin/pandoc /fakeroot/usr/local/bin/pandoc
FROM scratch
COPY --from=installer /fakeroot /
RUN npm install -g pnpm \
&& npm cache clean --force