forked from nspcc-dev/neofs-spec
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (43 loc) · 1.37 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
FROM ubuntu:20.04
MAINTAINER Stanislav Bogatyrev <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install -y \
git \
graphviz \
imagemagick \
latexmk \
libgraphviz-dev \
make \
openjdk-14-jre \
python3-pip \
librsvg2-bin \
texlive-fonts-extra \
texlive-fonts-recommended \
texlive-latex-base \
texlive-latex-extra \
texlive-latex-recommended \
texlive-xetex \
wget && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
# Install pandoc
RUN cd /tmp && \
wget -q https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb && \
dpkg -i pandoc-2.9.2.1-1-amd64.deb
# Install pandoc-crossref
RUN cd /tmp && \
wget -q https://github.com/lierdakil/pandoc-crossref/releases/download/v0.3.6.4/pandoc-crossref-Linux-2.9.2.1.tar.xz && \
tar -Jxvf pandoc-crossref-Linux-2.9.2.1.tar.xz && mv pandoc-crossref /usr/bin/
# Install PlantUML
ENV PLANTUML_BIN java -jar /usr/bin/plantuml.jar
RUN wget -q http://downloads.sourceforge.net/project/plantuml/1.2020.15/plantuml.1.2020.15.jar -O /usr/bin/plantuml.jar
# Install python stuff
# I know about requirements.txt, but it didn't work as expected
RUN pip3 install panflute==1.12.5
RUN pip3 install pandoc-img-glob==0.1.3
RUN pip3 install pandoc-plantuml-filter==0.1.2
RUN pip3 install pandocfilters==1.4.2
# Cleanup
RUN rm -rf /tmp/*
WORKDIR /src
CMD /bin/bash