From d40d8091fecceef790a736541e7ca788b41ccecb Mon Sep 17 00:00:00 2001 From: Willy Date: Thu, 9 Feb 2023 12:35:06 +0000 Subject: [PATCH] pin python version to 3.10 this prevents breakage once newer python versions are available in ubuntu's apt repo --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 13f0683..3e04696 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,8 @@ RUN apt-get update &&\ biber \ inkscape \ libwxgtk3.0-gtk3-dev \ - python3 \ + python-is-python3 \ + python3.10 \ python3-pip \ texlive-bibtex-extra \ texlive-extra-utils \ @@ -48,16 +49,15 @@ RUN apt-get update &&\ && \ rm -rf /var/lib/apt/lists/* +# NOTE on python-is-python3 minted expects "python" in PATH (not "python3") +# without this, things like autogobble with \inputminted break +# https://github.com/alexpovel/latex-extras-docker/blob/5429a82ef415c2e9eda0c20f71e7df63b51621e9/Dockerfile#L80-L87 + # install custom pygments lexers WORKDIR /usr/local/lib/python3.10/dist-packages/pygments/lexers COPY pygments-lexers/* . RUN python3 _mapping.py -# minted expects "python" in PATH (not "python3") -# without this, things like autogobble with \inputminted break -# https://github.com/alexpovel/latex-extras-docker/blob/5429a82ef415c2e9eda0c20f71e7df63b51621e9/Dockerfile#L80-L87 -RUN ln -s /usr/bin/python3 /usr/bin/python - ADD https://raw.githubusercontent.com/aclements/latexrun/master/latexrun /latexrun.py # allow non-root container run RUN chmod 644 /latexrun.py