Improve dockerfile
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
KingOfDog 2021-10-14 16:22:57 +02:00
parent 638e9f7d46
commit 7ce9a4c259
No known key found for this signature in database
GPG Key ID: 16E0927836F0F8EC

View File

@ -1,26 +1,25 @@
FROM debian:buster-slim FROM debian:bullseye-slim
ARG PANDOC_VERSION=2.11.4 ARG PANDOC_VERSION=2.14.2
ARG PANDOC_CROSSREF_VERSION=v0.3.9.1 ARG PANDOC_CROSSREF_VERSION=v0.3.12.0c
ARG DEBIAN_FRONTEND=noninteractive ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y wget xz-utils \ && apt-get install -y wget xz-utils
&& mkdir download \ RUN mkdir download \
&& cd download \ && cd download
&& 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/jgm/pandoc/releases/download/${PANDOC_VERSION}/pandoc-${PANDOC_VERSION}-linux-amd64.tar.gz -O pandoc.tar.gz
&& wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz \ RUN wget --quiet https://github.com/lierdakil/pandoc-crossref/releases/download/${PANDOC_CROSSREF_VERSION}/pandoc-crossref-Linux.tar.xz -O pandoc-crossref.tar.xz
&& ls -l \ RUN ls -l \
&& tar xf pandoc.tar.gz \ && tar xf pandoc.tar.gz \
&& tar xf pandoc-crossref.tar.xz \ && tar xf pandoc-crossref.tar.xz \
&& ls -l \ && ls -l
&& mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \ RUN mv pandoc-${PANDOC_VERSION}/bin/* /usr/bin/ \
&& mv pandoc-crossref /usr/bin/ \ && mv pandoc-crossref /usr/bin/ \
&& cd .. \ && cd .. \
&& rm -rf download \ && rm -rf download
&& apt-get install -y \ RUN apt-get install -y \
git \ git \
texlive-full \ texlive-full \
python-pygments \ python3-pygments
python3-pygments \ RUN rm -rf /var/lib/apt/lists/*
&& rm -rf /var/lib/apt/lists/*