From dd96c4852b4e0d6f0955626f7f92e1a4aae7e605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Mon, 18 Nov 2024 20:16:36 +0100 Subject: [PATCH] ubuntu base variant --- Dockerfile => Dockerfile.alpine | 0 Dockerfile.ubuntu | 38 +++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) rename Dockerfile => Dockerfile.alpine (100%) create mode 100644 Dockerfile.ubuntu diff --git a/Dockerfile b/Dockerfile.alpine similarity index 100% rename from Dockerfile rename to Dockerfile.alpine diff --git a/Dockerfile.ubuntu b/Dockerfile.ubuntu new file mode 100644 index 0000000..518b064 --- /dev/null +++ b/Dockerfile.ubuntu @@ -0,0 +1,38 @@ +FROM pandoc/extra:latest-ubuntu AS stage-base + +RUN set -ex; \ + \ + deluser --remove-home ubuntu; \ + \ + apt-get update; apt-get install -y \ + ghostscript \ + inotify-tools \ + make \ + ; rm -rf /var/lib/apt/lists/*; \ + \ + tlmgr install \ + kpfonts \ + lastpage \ + latexmk \ + ; + +COPY src/usr /usr + +WORKDIR /docs +ENTRYPOINT ["autodoc"] +CMD ["-bw"] + +FROM stage-base AS stage-diagrams + +RUN set -ex; \ + \ + apt-get update; apt-get install -y \ + npm \ + ; rm -rf /var/lib/apt/lists/*; \ + \ + npm install --global @mermaid-js/mermaid-cli; \ + \ + wget \ + --output-document='/usr/local/share/pandoc/filters/diagram.lua' \ + 'https://raw.githubusercontent.com/pandoc-ext/diagram/refs/heads/main/_extensions/diagram/diagram.lua' \ + ;