1
0
mirror of https://github.com/Briffou/texlive-docker synced 2025-04-11 23:04:57 +00:00
texlive-docker/Dockerfile
Thomas Briffard b3696641bd update profile and Dockerfile
so everyone can use luatex fonts database without generating a new one every time...
2019-03-01 14:58:05 -05:00

30 lines
835 B
Docker

# Docker for Tex Live
# current version : Tex Live 2018
FROM phusion/baseimage
LABEL version="1 Mars 2019"
RUN apt-get update && apt-get install -y ghostscript xz-utils wget bsdtar perl && \
apt-get clean
WORKDIR /home/install-tl-unx
ARG TEXMFSYSVAR=/tmp/texmf-var/
ADD custom.profile .
RUN wget -nv -O install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \
tar -xzf install-tl-unx.tar.gz --strip-components=1 && \
./install-tl --profile custom.profile && \
ln -s /usr/local/texlive/latest/bin/x86_64-linux /opt/texbin && \
rm -rf /usr/local/texlive/latest/texmf-dist/doc/ && \
rm -rf /home/install-tl-unx
WORKDIR /data
ENV PATH $PATH:/usr/local/texlive/latest/bin/x86_64-linux
RUN luaotfload-tool --update && chmod -R 777 $TEXMFSYSVAR
CMD ["/bin/bash"]