-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
76 lines (63 loc) · 1.83 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
FROM ubuntu:xenial
MAINTAINER Thomas Grosser <thomas.grosser@cloudogu.com>
ENV PANDOC_VERSION=1.19.2.1 \
TEXLIVE_VERSION=2018 \
PLANTUML_URL=https://ecosystem.cloudogu.com/plantuml
# copy texlive batch installation profile
COPY resources/texlive.profile .
# Install latex, PlantUML filter and other required packages
# we need ghostscript in order to convert eps images
RUN set -x \
&& apt-get clean \
&& apt-get update -y \
&& apt-get install -y -o Acquire::Retries=10 --no-install-recommends \
tex-common \
texinfo \
equivs \
perl-tk \
perl-doc \
make \
git \
ca-certificates \
locales \
zlibc \
zlib1g-dev \
haskell-platform \
wget \
curl \
ghostscript
# Install texlive
RUN set -x \
&& wget ftp://tug.org/historic/systems/texlive/${TEXLIVE_VERSION}/install-tl-unx.tar.gz \
&& tar xvf install-tl-unx.tar.gz \
&& cd install-tl-* \
&& ./install-tl -profile ../texlive.profile \
&& cd .. \
&& rm texlive.profile \
&& rm -R install-tl-*
# installed texlive version is 2018, but the path uses still 2017
ENV PATH=/usr/local/texlive/2017/bin/x86_64-linux:$PATH
# Update the default font map files
RUN updmap -sys
# Install Pandoc and required packages
RUN set -x \
&& cabal update \
&& cabal install --global \
pandoc-${PANDOC_VERSION} \
pandoc-citeproc \
pandoc-citeproc-preamble \
pandoc-crossref
# Install PlantUML filter
RUN set -x \
&& git clone https://github.com/cloudogu/pandoc-plantuml-filter.git \
&& cd pandoc-plantuml-filter/ \
&& cabal install --global
# copy plantuml script and make it executable
COPY resources/plantuml /pandoc-plantuml-filter/scripts/
RUN set -x \
&& chmod +x /pandoc-plantuml-filter/scripts/plantuml
ENV PATH=/pandoc-plantuml-filter/scripts:$PATH
WORKDIR /data
VOLUME ["/data"]
ENTRYPOINT ["pandoc"]
CMD ["--help"]