-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
87 lines (70 loc) · 3.07 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
76
77
78
79
80
81
82
83
84
85
86
87
FROM jupyter/r-notebook
MAINTAINER Martin Isaksson <martin.isaksson@gmail.com>
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y \
software-properties-common \
apt-transport-https \
texlive-publishers \
texlive-science \
texlive-lang-european \
ttf-adf-gillius \
latexmk \
fonts-linuxlibertine \
tex-gyre \
tree \
plantuml \
python-pip && \
add-apt-repository multiverse && \
apt-get update
RUN cd /tmp && \
mkdir -p /usr/share/fonts/opentype && \
wget http://download.adobe.com/pub/adobe/reader/unix/9.x/9.1/misc/FontPack910_xtd_i486-linux.tar.bz2 && \
tar xvjf FontPack910_xtd_i486-linux.tar.bz2 && \
tar xvf xtdfont/XTDFONT.TAR && \
mv Adobe/Reader9/Resource/Font/*.otf /usr/share/fonts/opentype && \
fc-cache && \
cd
# Downgrade pandoc
RUN conda install --yes pandoc=2.4
RUN pip install pandoc-xnos \
pandoc-eqnos \
pandoc-fignos \
pandoc-shortcaption \
iplantuml \
matplotlib \
pweave==0.25 \
pandoc-include
COPY . /usr/local/
USER root
ENV TEXMFHOME=/home/$NB_USER/texmf
RUN mkdir -p $TEXMFHOME/tex/latex/tikzuml/ && \
wget http://perso.ensta-paristech.fr/~kielbasi/tikzuml/var/files/src/tikzuml-v1.0-2016-03-29.tbz && \
tar xvjf tikzuml-v1.0-2016-03-29.tbz && \
mv tikzuml-v1.0-2016-03-29/tikz-uml.sty $TEXMFHOME/tex/latex/tikzuml/
## Install NeurIPS template
RUN mkdir -p $TEXMFHOME/tex/latex/neurips_2018/ && \
mv /usr/local/pandoc_conference_templates/NeurIPS_2018/*.sty $TEXMFHOME/tex/latex/neurips_2018/
## Install ICML template
RUN mkdir -p $TEXMFHOME/tex/latex/icml_2019/ && \
mv /usr/local/pandoc_conference_templates/ICML_2019/*.sty $TEXMFHOME/tex/latex/icml_2019/
## Install IEEE template
RUN mkdir -p $TEXMFHOME/tex/latex/ieee/ && \
cp /usr/local/pandoc_conference_templates/IEEEtran/*.cls $TEXMFHOME/tex/latex/ieee/
## Install ACM CCS
RUN mkdir -p $TEXMFHOME/tex/latex/acmccs/ && \
wget https://www.acm.org/binaries/content/assets/publications/consolidated-tex-template/acmart-master.zip && \
unzip -d $TEXMFHOME/tex/latex/acmccs/ acmart-master.zip
#RUN mkdir -p $TEXMFHOME/tex/latex/acmccs/ && \
# mv /usr/local/acmccs/*.cls $TEXMFHOME/tex/latex/acmccs/
RUN mkdir -p $TEXMFHOME/tex/latex/kth/ && \
wget http://web.student.chalmers.se/~k02hajo/public/Latex/Manualer/KTH%20thesis/kthesis.tar.gz && \
wget http://web.student.chalmers.se/~k02hajo/public/Latex/Manualer/KTH%20thesis/kthsym.tar.gz && \
tar xvzf kthesis.tar.gz -C $TEXMFHOME && \
tar xvzf kthsym.tar.gz -C $TEXMFHOME && \
wget https://raw.githubusercontent.com/karlkurzer/path_planner_tex/master/KTHEEtitlepage.sty -P $TEXMFHOME/tex/latex/kth/ && \
wget https://github.com/karlkurzer/path_planner_tex/raw/master/kth_logo.pdf -P $TEXMFHOME/tex/generic/kthsym
COPY kthcolors/lib/kthcolors.sty $TEXMFHOME/tex/latex/kth/
RUN wget https://github.com/sylvainhalle/textidote/releases/download/v0.8.1/textidote_0.8.1_all.deb && \
apt-get install ./textidote_0.8.1_all.deb