FROM python:3.12

RUN apt-get update -y
RUN apt-get install -y wget perl make
RUN wget https://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
RUN zcat < install-tl-unx.tar.gz | tar xf -
RUN cd install-tl-2* && perl ./install-tl --no-interaction --paper=letter --scheme=small --no-doc-install --no-src-install
RUN pip install sphinx
RUN PATH=$PATH:/usr/local/texlive/2025/bin/x86_64-linux tlmgr option repository https://mirror.ctan.org/systems/texlive/tlnet
RUN PATH=$PATH:/usr/local/texlive/2025/bin/x86_64-linux tlmgr update --self
RUN PATH=$PATH:/usr/local/texlive/2025/bin/x86_64-linux tlmgr install latexmk ly1 fontspec collection-fontsrecommended collection-latexrecommended
RUN PATH=$PATH:/usr/local/texlive/2025/bin/x86_64-linux tlmgr install wrapfig capt-of framed needspace tabulary varwidth titlesec sectsty pict2e ellipse
RUN PATH=$PATH:/usr/local/texlive/2025/bin/x86_64-linux tlmgr install montserrat
