Merge pull request #7901 from overleaf/ae-tlmgr-path

Use `tlmgr path add` for TeX Live binaries

GitOrigin-RevId: fa80915c036000eebd22f8e2e07f12f2505e624b
This commit is contained in:
Alf Eaton 2022-07-21 09:28:24 +01:00 committed by Copybot
parent dd3a349907
commit ed67590cc9

View file

@ -42,8 +42,6 @@ RUN chmod +x /usr/bin/envsubst
# -f Dockerfile-base -t sharelatex/sharelatex-base . # -f Dockerfile-base -t sharelatex/sharelatex-base .
ARG TEXLIVE_MIRROR=http://mirror.ctan.org/systems/texlive/tlnet ARG TEXLIVE_MIRROR=http://mirror.ctan.org/systems/texlive/tlnet
ENV PATH "${PATH}:/usr/local/texlive/2022/bin/x86_64-linux"
RUN mkdir /install-tl-unx \ RUN mkdir /install-tl-unx \
&& curl -sSL \ && curl -sSL \
${TEXLIVE_MIRROR}/install-tl-unx.tar.gz \ ${TEXLIVE_MIRROR}/install-tl-unx.tar.gz \
@ -58,11 +56,13 @@ RUN mkdir /install-tl-unx \
-profile /install-tl-unx/texlive.profile \ -profile /install-tl-unx/texlive.profile \
-repository ${TEXLIVE_MIRROR} \ -repository ${TEXLIVE_MIRROR} \
\ \
&& $(find /usr/local/texlive -name tlmgr) path add \
&& tlmgr install --repository ${TEXLIVE_MIRROR} \ && tlmgr install --repository ${TEXLIVE_MIRROR} \
latexmk \ latexmk \
texcount \ texcount \
synctex \ synctex \
\ \
&& tlmgr path add \
&& rm -rf /install-tl-unx && rm -rf /install-tl-unx