Skip to content

Commit d251fcb

Browse files
binghemn200
authored andcommitted
[docker-ci] pandoc 3.7.0.2 on Docker CI images
1 parent ed3f41c commit d251fcb

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

developers/docker-ci/latest/Dockerfile

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,23 @@ fi
108108
ENV HOL4_SMV_EXECUTABLE=/ML/solvers/NuRV
109109

110110
# more packages for buliding HOL manuals (+pandoc for Markdown), etc.
111+
RUN apt-get update
111112
RUN apt-get install -qy texlive-latex-recommended
112-
RUN apt-get install -qy pandoc latexmk texlive-latex-extra
113+
RUN apt-get install -qy latexmk texlive-latex-extra
113114
RUN apt-get install -qy texlive-fonts-extra texlive-science
114115
RUN apt-get clean
115116

116-
RUN apt-get clean
117+
# finally, install a recent pandoc (>= 3.4, with c/line option --table-caption-position=below)
118+
ARG PANDOC_VERSION="3.7.0.2"
119+
120+
RUN if [ "linux/amd64" = "$TARGETPLATFORM" ]; then \
121+
wget -q https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-amd64.deb; \
122+
dpkg -i pandoc-${PANDOC_VERSION}-1-amd64.deb; \
123+
rm -f pandoc-${PANDOC_VERSION}-1-amd64.deb; \
124+
fi
125+
126+
RUN if [ "linux/arm64" = "$TARGETPLATFORM" ]; then \
127+
wget -q https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-1-arm64.deb; \
128+
dpkg -i pandoc-${PANDOC_VERSION}-1-arm64.deb; \
129+
rm -f pandoc-${PANDOC_VERSION}-1-arm64.deb; \
130+
fi

0 commit comments

Comments
 (0)