forked from joaomlourenco/novathesis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
74 lines (65 loc) · 1.55 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
FROM debian:latest
MAINTAINER Luís Sousa <[email protected]>
# Inspired on the work of Charo Nuguid available at
# https://github.com/charonuguid/docker-latex for reference
# Inform debian that is running in non interactive mode
ENV DEBIAN_FRONTEND noninteractive
# Base packages
RUN apt-get update \
&& apt-get -u dist-upgrade -y \
&& apt-get install -y \
apt-utils \
dialog \
less \
vim \
&& apt-get clean
# TeX Live dependencies
RUN apt-get update \
&& apt-get install -y \
python \
perl \
wget \
&& apt-get clean
# TeX Live environment
ENV PATH /usr/local/texlive/latest/bin/x86_64-linux:$PATH
ENV INFOPATH /usr/local/texlive/latest/texmf-dist/doc/info
ENV MANPATH /usr/local/texlive/latest/texmf-dist/doc/man
# TeX Live installation profile
COPY texlive.profile /root/
# TeX Live installation
RUN cd /root \
# Hack for Windows platform
&& sed -i 's/\r//g' texlive.profile \
&& wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& tar -xzf install-tl-unx.tar.gz \
&& cd install-tl-*/ \
&& ./install-tl --profile=/root/texlive.profile \
&& rm -rf /root/install-tl-*
# Install LaTeX packages for novathesis template
RUN tlmgr install \
kpfonts \
biblatex \
logreq \
xifthen \
ifmtarg \
csquotes \
etoolbox \
xstring \
soul \
mathalfa \
glossaries \
mfirstuc \
xfor \
datatool \
substr \
tracklang \
paralist \
todonotes \
lipsum \
supertabular \
glossaries-portuges \
glossaries-english \
biblatex-apa
# Map to src
VOLUME /src
WORKDIR /src