From 87504c96cedea3a36c02ce64d7d10745164a6ae2 Mon Sep 17 00:00:00 2001 From: Isaac Lewis Date: Fri, 26 Jan 2024 14:45:08 -0800 Subject: [PATCH] retry tlmgr update & install up to five times --- docker/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c1f800e87d..2ded06e95c 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -104,8 +104,8 @@ RUN /home/pandoc/.TinyTeX/bin/*/tlmgr path add # verify tlmgr version and add packages needed to build the documents RUN tlmgr --version -RUN tlmgr update -self -RUN tlmgr install \ +RUN for i in 1 2 3 4 5; do tlmgr update --self && break || sleep 15; done +RUN for i in 1 2 3 4 5; do tlmgr install \ xecjk \ ctex \ fancyhdr \ @@ -140,7 +140,7 @@ RUN tlmgr install \ ulem \ upquote \ xurl \ - zref + zref && break || sleep 15; done FROM latex_base as work_layer #copy fonts from font_base