From 581410130daa4bbdb5024a8171f2e5ce3b48f71e Mon Sep 17 00:00:00 2001
From: David Mehren <git@herrmehren.de>
Date: Wed, 16 Jun 2021 11:14:53 +0200
Subject: [PATCH] Update TeXLive from texlive/texlive docker image

---
 Dockerfile | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index b0a53f5..1a2b3c9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -6,11 +6,7 @@ RUN mkdir /src && cd /src && curl "$LDAP_PLUGIN_URL" | tar -xzf - --strip-compon
 RUN ls /src
 RUN sysctl fs.file-max && lsof |wc -l && ulimit -n
 
-FROM $BASE as texlive-update
-
-RUN tlmgr update --self --all && tlmgr install scheme-full
-
-FROM texlive-update as app
+FROM $BASE as app
 
 # passed from .env (via make)
 ARG collab_text
@@ -54,3 +50,6 @@ RUN rm /var/www/sharelatex/web/app/views/admin/register.pug
 #RUN rm /var/www/sharelatex/web/app/views/project/editor/review-panel.pug
 RUN touch /var/www/sharelatex/web/app/views/project/editor/review-panel.pug
 
+# Update TeXLive
+COPY --from=registry.gitlab.com/islandoftex/images/texlive:latest /usr/local/texlive /usr/local/texlive
+RUN tlmgr path add
-- 
GitLab