-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (37 loc) · 916 Bytes
/
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
FROM ubuntu:20.04
ENV PATH $PATH:/usr/local/texlive/latest/bin/x86_64-linux
RUN \
#
# Install dependencies
#
apt update; \
apt upgrade; \
apt install perl wget -y; \
#
# Download texlive
#
cd tmp; \
wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz; \
tar xvf install-tl-unx.tar.gz; \
rm -rf install-tl-unx.tar.gz; \
ls | xargs -I {} mv {} install-tl; \
cd install-tl; \
#
# Install texlive
#
echo "selected_scheme scheme-basic" >> ./texlive.profile; \
./install-tl -profile ./texlive.profile; \
cd /usr/local/texlive; \
mv ./$(ls | grep -E "[0-9]+") ./latest; \
tlmgr update --self --all; \
#
# Install packages
#
echo "Do nothing. Yes. Do nothing."; \
#
# Clean cache
#
apt-get clean; \
rm -rf /var/lib/apt/lists/*; \
rm -rf /tmp/*;
COPY .latexmkrc /root/