docker-pandoc-latex/Dockerfile
2020-05-19 17:36:42 +02:00

24 lines
1.1 KiB
Docker

FROM debian:stretch-slim
ENV PANDOC_VERSION 2.9.2.1
ENV PANDOC_CROSSREF_VERSION v0.3.6.2a
RUN echo https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz \
&& echo https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux-${PANDOC_VERSION}.tar.xz \
&& mkdir download \
&& cd download \
&& 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 \
&& 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 \
&& apt-get update \
&& apt-get install -y \
git \
texlive-full \
python-pygments \
&& rm -rf /var/lib/apt/lists/*