From 016908a00aa8d9cce855447a9839c1687f1bf5f6 Mon Sep 17 00:00:00 2001
From: Orestis <orestis.malaspinas@pm.me>
Date: Wed, 8 Mar 2023 23:41:41 +0100
Subject: [PATCH] i think i put it all

---
 pandoc/Dockerfile | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/pandoc/Dockerfile b/pandoc/Dockerfile
index b480d91..25c25c2 100644
--- a/pandoc/Dockerfile
+++ b/pandoc/Dockerfile
@@ -1,5 +1,4 @@
-FROM pandoc/latex:2.19.2
-
+FROM pandoc/latex:3.1
 # Install additional TeX packages such as those used by eisvogel template
 
 RUN tlmgr update --self
@@ -19,12 +18,15 @@ RUN tlmgr option repository http://mirror.ctan.org/systems/texlive/tlnet \
 ENV CHROME_BIN="/usr/bin/chromium-browser" \
     PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
 
-RUN apk add --update udev ttf-freefont chromium npm make openssh-client rsync \
+RUN apk add --no-cache --update udev ttf-freefont chromium npm make openssh-client rsync \
     && npm install -g mermaid-filter@1.4.6 --unsafe-perm=true
 
-RUN apk add --update python3 py3-pip \
+RUN apk add --no-cache --update python3 py3-pip py3-numpy py3-matplotlib \
     && python3 -m pip install pip --upgrade \
     && python3 -m pip install wheel && python3 -m pip install pandoc-numbering
 
+RUN wget https://github.com/LaurentRDC/pandoc-plot/releases/download/1.6.1/pandoc-plot-Linux-x86_64-static.zip \
+    && unzip pandoc-plot-Linux-x86_64-static.zip -d /usr/local/bin \
+    && rm pandoc-plot-Linux-x86_64-static.zip
 
 ENTRYPOINT /bin/sh
-- 
GitLab