forked from modelica/ModelicaSpecification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (29 loc) · 1.67 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
FROM ubuntu:bionic
ENV PATH="/usr/local/texlive/bin/x86_64-linux:${PATH}"
RUN sed -i s,http://archive.ubuntu.com/ubuntu/,mirror://mirrors.ubuntu.com/mirrors.txt, /etc/apt/sources.list \
&& apt-get update \
&& export DEBIAN_FRONTEND=noninteractive \
&& apt-get install -qy perl ca-certificates make libxslt1.1 libxslt-dev libxml2 libxml2-dev gcc wget curl git unzip cpanminus --no-install-recommends --no-install-suggests \
&& export PATH="/tmp/texlive/bin/x86_64-linux:$PATH" \
&& REMOTE="http://mirror.ctan.org/systems/texlive/tlnet" \
&& INSTALL="/tmp/install-texlive" \
&& mkdir -p $INSTALL \
&& echo "export PATH=$PATH:/usr/local/texlive/2020/bin" >> /etc/environment \
&& curl -sSL $REMOTE/install-tl-unx.tar.gz | tar -xzv -C $INSTALL --strip-components=1 \
&& echo selected_scheme scheme-basic > texlive.profile \
&& echo TEXDIR /usr/local/texlive/ >> texlive.profile \
&& echo TEXMFLOCAL /usr/local/texmf-local >> texlive.profile \
&& echo TEXMFSYSCONFIG /usr/local/texmf-config >> texlive.profile \
&& echo TEXMFSYSVAR /usr/local/texmf-var >> texlive.profile \
&& echo tlpdbopt_autobackup 0 >> texlive.profile \
&& echo tlpdbopt_install_docfiles 0 >> texlive.profile \
&& echo tlpdbopt_install_srcfiles 0 >> texlive.profile \
&& $INSTALL/install-tl --profile texlive.profile \
&& rm texlive.profile \
&& tlmgr update --self --all --reinstall-forcibly-removed \
&& tlmgr install latexmk listings xcolor float multirow tocloft parskip etoolbox \
&& cpanm JSON \
&& cpanm LaTeXML \
&& apt-get autoremove -qy make gcc curl wget git cpanminus libxml2-dev libxslt-dev \
&& latexmk --version \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/ /root/.cpanm/work*