Skip to content

Commit 67c4bab

Browse files
committed
Try different mirror
1 parent c925531 commit 67c4bab

File tree

1 file changed

+23
-14
lines changed

1 file changed

+23
-14
lines changed

Dockerfile

Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,26 @@ ENV PATH="${PATH}:/root/bin"
1111

1212
RUN fmtutil-sys --all
1313

14-
RUN tlmgr install fancyhdr \
15-
fontawesome \
16-
pgf \
17-
lastpage \
18-
latexmk \
19-
synctex \
20-
texcount \
21-
latexindent \
22-
titlesec \
23-
marvosym \
24-
enumitem \
25-
preprint \
26-
opensans \
27-
fontaxes
14+
RUN tlmgr option repository "https://mirror.ctan.org/systems/texlive/tlnet" && \
15+
i=1; \
16+
until [ "$i" -gt 3 ]; do \
17+
tlmgr update --self && \
18+
tlmgr install fancyhdr \
19+
fontawesome \
20+
pgf \
21+
lastpage \
22+
latexmk \
23+
synctex \
24+
texcount \
25+
latexindent \
26+
titlesec \
27+
marvosym \
28+
enumitem \
29+
preprint \
30+
opensans \
31+
fontaxes && break; \
32+
echo "tlmgr failed on attempt ${i}/3, retrying in 15s..." >&2; \
33+
i=$((i + 1)); \
34+
sleep 15; \
35+
done && \
36+
[ "$i" -le 3 ]

0 commit comments

Comments
 (0)