diff --git a/pandoc/Dockerfile b/pandoc/Dockerfile
index b480d91936388eff0258a21841ae0b5554184ff5..25c25c2bcb905e526f9af941cf95dd94c5df9979 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