-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
38 lines (31 loc) · 1.41 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM alpine:3.20.3
# installation settings
ARG TL_MIRROR="https://texlive.info/CTAN/systems/texlive/tlnet"
RUN apk add --no-cache perl curl fontconfig libgcc gnupg && \
mkdir "/tmp/texlive" && cd "/tmp/texlive" && \
wget "$TL_MIRROR/install-tl-unx.tar.gz" && \
tar xzvf ./install-tl-unx.tar.gz && \
( \
echo "selected_scheme scheme-minimal" && \
echo "instopt_adjustpath 0" && \
echo "tlpdbopt_install_docfiles 0" && \
echo "tlpdbopt_install_srcfiles 0" && \
echo "TEXDIR /opt/texlive/" && \
echo "TEXMFLOCAL /opt/texlive/texmf-local" && \
echo "TEXMFSYSCONFIG /opt/texlive/texmf-config" && \
echo "TEXMFSYSVAR /opt/texlive/texmf-var" && \
echo "TEXMFHOME ~/.texmf" \
) > "/tmp/texlive.profile" && \
"./install-tl-"*"/install-tl" --location "$TL_MIRROR" -profile "/tmp/texlive.profile" && \
rm -vf "/opt/texlive/install-tl" && \
rm -vf "/opt/texlive/install-tl.log" && \
rm -vrf /tmp/*
ENV PATH="${PATH}:/opt/texlive/bin/x86_64-linuxmusl"
ARG TL_SCHEME_BASIC="y"
RUN if [ "$TL_SCHEME_BASIC" = "y" ]; then tlmgr install scheme-basic; fi
ARG TL_SCHEME_SMALL="y"
RUN if [ "$TL_SCHEME_SMALL" = "y" ]; then tlmgr install scheme-small; fi
ARG TL_SCHEME_MEDIUM="y"
RUN if [ "$TL_SCHEME_MEDIUM" = "y" ]; then tlmgr install scheme-medium; fi
ARG TL_SCHEME_FULL="y"
RUN if [ "$TL_SCHEME_FULL" = "y" ]; then tlmgr install scheme-full; fi