From 1d56fcb72318d0b719f9e9fda77c796cc5edf67e Mon Sep 17 00:00:00 2001 From: KoCoder Date: Fri, 17 Apr 2026 18:27:06 +0200 Subject: [PATCH] Use pandoc/latex --- Dockerfile | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1330d93..1060f74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,28 @@ -FROM ghcr.io/catthehacker/ubuntu:gh-20.04 +FROM pandoc/latex:3-debian USER root +SHELL ["/bin/bash", "-c"] + + RUN apt-get update RUN apt-get upgrade -y -RUN apt-get install pandoc nodejs texlive-full -y +RUN apt-get install curl -y RUN apt-get clean RUN rm -rf /var/lib/apt/lists/* +RUN useradd -m runner -RUN npm install -g @mermaid-js/mermaid-cli +USER runner -USER gitea-action \ No newline at end of file +ENV NVM_DIR /home/runner/.nvm +ENV NODE_VERSION 24.15.0 + +RUN curl https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash \ + && . $NVM_DIR/nvm.sh \ + && npm install -g @mermaid-js/mermaid-cli + +ENV NODE_PATH $NVM_DIR/versions/node/v$NODE_VERSION/lib/node_modules +ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH + +CMD ["/bin/bash"] +ENTRYPOINT [ "/bin/bash", "-c" ] \ No newline at end of file