diff --git a/Dockerfile b/Dockerfile index ac7d29a..f4e4e6b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,7 @@ ENV LANG C.UTF-8 # install additional OS packages. RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ - && apt-get -y install --no-install-recommends wget libfontconfig git make libfile-fcntllock-perl + && apt-get -y install --no-install-recommends wget fontconfig git make libfile-fcntllock-perl # TeXLive WORKDIR /tmp @@ -26,4 +26,8 @@ RUN YEAR=$(ls -d /usr/local/texlive/2* | sed -e 's/.*[/]//g') \ && echo MANPATH=/usr/local/texlive/$YEAR/texmf-dist/doc/man:$MANPATH >> ~/.profile \ && echo INFOPATH=/usr/local/texlive/$YEAR/texmf-dist/doc/info:$INFOPATH >> ~/.profile \ && echo PATH=/usr/local/texlive/$YEAR/bin/x86_64-linux:$PATH >> ~/.profile \ - && . ~/.profile + && . ~/.profile \ + # System font configuration for XeTeX and LuaTeX + && ln -s /usr/local/texlive/$YEAR/texmf-var/fonts/conf/texlive-fontconfig.conf /etc/fonts/conf.d/09-texlive.conf \ # Ref: https://www.tug.org/texlive/doc/texlive-en/texlive-en.html#x1-330003.4.4 + && fc-cache -fv +