docker-node-pandoc/Dockerfile

28 lines
813 B
Text
Raw Permalink Normal View History

2025-03-06 20:50:14 +08:00
FROM almalinux:9 AS installer
2023-12-09 22:50:23 +08:00
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 \
2025-03-06 20:46:41 +08:00
git-tools \
&& dnf module install \
--installroot /fakeroot \
--releasever 9 \
--setopt install_weak_deps=false \
--nodocs -y \
nodejs:22 \
2023-12-09 22:50:23 +08:00
&& dnf clean all --installroot /fakeroot
2025-03-06 20:46:41 +08:00
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
2023-12-09 22:50:23 +08:00
FROM scratch
COPY --from=installer /fakeroot /
RUN npm install -g pnpm \
&& npm cache clean --force