Reduce image size, remove unnecessary packages

This commit is contained in:
Marcel Schwarz 2020-04-26 23:58:22 +02:00
parent e2d0557401
commit 3915c0fbd6

View File

@ -5,7 +5,7 @@ ENV HOME /data
WORKDIR /data WORKDIR /data
RUN apt-get update -q \ RUN apt-get update -q \
&& apt-get install -qy build-essential wget libfontconfig1 \ && apt-get install -qy tar perl wget \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ARG SCHEME ARG SCHEME
@ -13,9 +13,9 @@ ARG SCHEME
RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \ RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz \
&& mkdir /install-tl-unx \ && mkdir /install-tl-unx \
&& tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \ && tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1 \
&& rm install-tl-unx.tar.gz \
&& echo "selected_scheme scheme-${SCHEME}" >> /install-tl-unx/texlive.profile \ && echo "selected_scheme scheme-${SCHEME}" >> /install-tl-unx/texlive.profile \
&& /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \ && /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile \
&& rm -r /install-tl-unx \ && rm -r /install-tl-unx
&& rm install-tl-unx.tar.gz
ENV PATH="/usr/local/texlive/2020/bin/x86_64-linux:${PATH}" ENV PATH="/usr/local/texlive/2020/bin/x86_64-linux:${PATH}"