From fdbc67e582bcff3c27022deda7e69866f5dc5010 Mon Sep 17 00:00:00 2001 From: pi-ux-ce Date: Mon, 6 Apr 2026 09:58:44 +0000 Subject: [PATCH] Add Dockerfile --- Dockerfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d865a8c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,34 @@ +FROM sharelatex/sharelatex:6.1.2 + +SHELL ["/bin/bash", "-cx"] + +# update tlmgr itself +RUN wget "https://mirror.ctan.org/systems/texlive/tlnet/update-tlmgr-latest.sh" \ + && sh update-tlmgr-latest.sh \ + && tlmgr --version + +# enable tlmgr to install ctex +RUN tlmgr update texlive-scripts + +# update packages +RUN tlmgr update --all + +# install all the packages +RUN tlmgr install scheme-full + +# recreate symlinks +RUN tlmgr path add + +# update system packages +RUN apt-get update && apt-get upgrade -y + +# install inkscape for svg support +RUN apt-get install inkscape -y + +# install lilypond +RUN apt-get install lilypond -y + +# enable shell-escape by default: +RUN TEXLIVE_FOLDER=$(find /usr/local/texlive/ -type d -name '20*') \ + && echo % enable shell-escape by default >> /$TEXLIVE_FOLDER/texmf.cnf \ + && echo shell_escape = t >> /$TEXLIVE_FOLDER/texmf.cnf \ No newline at end of file