2020-03-27 03:25:15 +01:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
ENV HOME /data
|
|
|
|
WORKDIR /data
|
|
|
|
|
|
|
|
RUN apt-get update -q \
|
2020-04-27 00:10:21 +02:00
|
|
|
&& apt-get install -qy libfontconfig1 tar perl wget \
|
2020-03-27 03:25:15 +01:00
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2020-03-29 18:47:03 +02:00
|
|
|
ARG SCHEME
|
2020-03-29 18:33:57 +02:00
|
|
|
|
2020-03-27 03:25:15 +01:00
|
|
|
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
|
|
|
|
&& mkdir /install-tl-unx \
|
|
|
|
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
|
2020-04-26 23:58:22 +02:00
|
|
|
&& rm install-tl-unx.tar.gz \
|
2020-03-29 18:33:57 +02:00
|
|
|
&& echo "selected_scheme scheme-${SCHEME}" >> /install-tl-unx/texlive.profile \
|
2020-03-27 03:25:15 +01:00
|
|
|
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
|
2020-04-26 23:58:22 +02:00
|
|
|
&& rm -r /install-tl-unx
|
2020-03-27 03:25:15 +01:00
|
|
|
|
2020-04-26 22:59:43 +02:00
|
|
|
ENV PATH="/usr/local/texlive/2020/bin/x86_64-linux:${PATH}"
|