-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (29 loc) · 1022 Bytes
/
Dockerfile
File metadata and controls
32 lines (29 loc) · 1022 Bytes
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
FROM ubuntu:focal
LABEL Description="Image for building lecture notes (texlive + rail + fig2dev + gnuplot + pdftk + qpdf)" Vendor="Marcellus Siegburg" Version="1.1"
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
$(apt-cache depends texlive-full | grep Depends | grep -v '\-doc$' | sed 's/Depends://g') \
fig2dev \
wget \
xzdec \
make \
gcc \
libc-dev \
bison \
flex \
gnuplot \
pdftk \
qpdf \
unzip
WORKDIR /tmp
RUN wget http://mirrors.ctan.org/support/rail.zip \
&& unzip rail \
&& cd rail \
&& mkdir -p /usr/share/texmf/doc/man/manl \
&& sed -i "s#TEXDIR=\$(HOME)/tex#TEXDIR=/usr/share/texmf/tex/latex/rail#;s#BINDIR=\$(HOME)/bin#BINDIR=/usr/local/bin#;s#MANDIR=\$(HOME)/man#MANDIR=/usr/share/texmf/doc/man#" Makefile \
&& make install \
&& cd / && rm -rf /tmp/rail* \
&& apt-get remove -y gcc libc-dev bison flex unzip \
&& tlmgr init-usertree \
&& mkdir /work
WORKDIR /work