Skip to content

Commit

Permalink
Remove TL_YEAR
Browse files Browse the repository at this point in the history
  • Loading branch information
kjarosh committed Mar 25, 2024
1 parent 4d653ea commit 9ef884f
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ FROM alpine:3.19.1

# installation settings
ARG TL_MIRROR="https://texlive.info/CTAN/systems/texlive/tlnet"
ARG TL_YEAR="2024"

RUN apk add --no-cache perl curl fontconfig libgcc gnupg && \
mkdir "/tmp/texlive" && cd "/tmp/texlive" && \
Expand All @@ -13,18 +12,18 @@ RUN apk add --no-cache perl curl fontconfig libgcc gnupg && \
echo "instopt_adjustpath 0" && \
echo "tlpdbopt_install_docfiles 0" && \
echo "tlpdbopt_install_srcfiles 0" && \
echo "TEXDIR /opt/texlive/${TL_YEAR}" && \
echo "TEXDIR /opt/texlive/" && \
echo "TEXMFLOCAL /opt/texlive/texmf-local" && \
echo "TEXMFSYSCONFIG /opt/texlive/${TL_YEAR}/texmf-config" && \
echo "TEXMFSYSVAR /opt/texlive/${TL_YEAR}/texmf-var" && \
echo "TEXMFSYSCONFIG /opt/texlive/texmf-config" && \
echo "TEXMFSYSVAR /opt/texlive/texmf-var" && \
echo "TEXMFHOME ~/.texmf" \
) > "/tmp/texlive.profile" && \
"./install-tl-${TL_YEAR}"*"/install-tl" --location "$TL_MIRROR" -profile "/tmp/texlive.profile" && \
rm -vf "/opt/texlive/${TL_YEAR}/install-tl" && \
rm -vf "/opt/texlive/${TL_YEAR}/install-tl.log" && \
"./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/${TL_YEAR}/bin/x86_64-linuxmusl"
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
Expand Down

0 comments on commit 9ef884f

Please sign in to comment.