docker-pandoc-latex/Dockerfile
KingOfDog f776bfbdba
All checks were successful
continuous-integration/drone/push Build is passing
Don't use latex full
2023-06-30 14:14:52 +02:00

36 lines
1.1 KiB
Docker

FROM debian:bullseye-slim
ARG PANDOC_VERSION=3.0.1
ARG PANDOC_CROSSREF_VERSION=v0.3.15.0
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get clean
RUN apt-get update \
&& apt-get install -y wget xz-utils
RUN mkdir download \
&& cd download
RUN wget --quiet https://github.com/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O pandoc.tar.gz
RUN wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz
RUN ls -l \
&& tar xf pandoc.tar.gz \
&& tar xf pandoc-crossref.tar.xz \
&& ls -l
RUN mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
&& mv pandoc-crossref /usr/bin/ \
&& cd .. \
&& rm -rf download
RUN apt-get install -y \
git \
texlive-latex-recommended \
texlive-xetex \
texlive-science \
texlive-pictures \
biber \
texlive-bibtex-extra \
texlive-extra-utils \
python3-pygments \
python3-pip \
inkscape
RUN python3 -m pip install --upgrade pygments
RUN rm -rf /var/lib/apt/lists/*