From 6a761aca54b879d2ef8b4244e85bf1a18a3aca09 Mon Sep 17 00:00:00 2001 From: Florian Maurer Date: Thu, 29 Feb 2024 12:28:39 +0100 Subject: [PATCH 1/2] fix path - use latest texlive This commit moves to tlmgr to install the latest texlive version. Somehow the bin of the latex install dir is not on the PATH so we add it. An image installed from this has a size of about 6.8GB and includes all packages of a typical latex distribution --- ldap-overleaf-sl/Dockerfile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ldap-overleaf-sl/Dockerfile b/ldap-overleaf-sl/Dockerfile index fd26bc1..e3c4c25 100644 --- a/ldap-overleaf-sl/Dockerfile +++ b/ldap-overleaf-sl/Dockerfile @@ -19,14 +19,16 @@ RUN npm install -g npm && \ # npm cache clean --force && \ npm install ldap-escape ldapts-search ldapts@3.2.4 && \ # npm install bcrypt@5.0.0 && \ - ## This variant of updateing texlive does not work - # bash -c tlmgr install scheme-full && \ - ## try this one: apt-get update && \ - apt-get -y install python-pygments && \ - apt-get -y install texlive texlive-lang-german texlive-latex-extra texlive-full texlive-science && \ + apt-get -y install libxml-libxslt-perl cpanminus libbtparse2 python-pygments && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* +# now install latest texlive2023 from tlmgr +RUN tlmgr update --self --all && \ + tlmgr install scheme-full --verify-repo=none +# latex-bin must be on path to be found in compilation process +# needed for biber epstopdf and others +ENV PATH="/usr/local/texlive/2023/bin/x86_64-linux:${PATH};" # overwrite some files COPY sharelatex/AuthenticationManager.js /overleaf/services/web/app/src/Features/Authentication/ From 217e61d9adc3b5c116fcb5c0684e02e86b32b71a Mon Sep 17 00:00:00 2001 From: yzx9 Date: Tue, 5 Mar 2024 22:55:25 +0800 Subject: [PATCH 2/2] Reduce RUN instruction --- ldap-overleaf-sl/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ldap-overleaf-sl/Dockerfile b/ldap-overleaf-sl/Dockerfile index e3c4c25..4b79aad 100644 --- a/ldap-overleaf-sl/Dockerfile +++ b/ldap-overleaf-sl/Dockerfile @@ -21,11 +21,12 @@ RUN npm install -g npm && \ # npm install bcrypt@5.0.0 && \ apt-get update && \ apt-get -y install libxml-libxslt-perl cpanminus libbtparse2 python-pygments && \ + # now install latest texlive2023 from tlmgr + tlmgr update --self --all && \ + tlmgr install scheme-full --verify-repo=none && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -# now install latest texlive2023 from tlmgr -RUN tlmgr update --self --all && \ - tlmgr install scheme-full --verify-repo=none + # latex-bin must be on path to be found in compilation process # needed for biber epstopdf and others ENV PATH="/usr/local/texlive/2023/bin/x86_64-linux:${PATH};"