docker-pandoc-latex/Dockerfile

25 lines
1.1 KiB
Docker
Raw Normal View History

2020-05-19 14:46:27 +00:00
FROM debian:stretch-slim
2020-05-18 22:30:55 +00:00
2020-05-19 14:46:27 +00:00
ENV PANDOC_VERSION 2.9.2.1
ENV PANDOC_CROSSREF_VERSION v0.3.6.2a
2020-05-18 22:30:55 +00:00
2020-05-19 15:48:37 +00:00
RUN apt-get update \
&& apt-get install -y wget \
&& echo https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz \
2020-05-19 15:36:42 +00:00
&& echo https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux-${PANDOC_VERSION}.tar.xz \
2020-05-19 14:46:27 +00:00
&& mkdir download \
&& cd download \
2020-05-19 15:36:42 +00:00
&& wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz \
&& wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux-${PANDOC_VERSION}.tar.xz \
2020-05-19 14:46:27 +00:00
&& tar -xf pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz \
&& sudo mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
&& tar -xf pandoc-crossref-Linux-${PANDOC_VERSION}.tar.xz \
&& mv pandoc-crossref /usr/bin/ \
&& cd .. \
&& rm -rf download \
2020-05-19 15:36:42 +00:00
&& apt-get install -y \
git \
texlive-full \
python-pygments \
2020-05-19 14:46:27 +00:00
&& rm -rf /var/lib/apt/lists/*