diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9ac1b74e07b8c5a73003b1b9dde31de00784a70b..1246e83cfd927c19245576e34136af47735e922b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -75,9 +75,9 @@ deploy_zenodo:
 
 pages:
     stage: deploy
-    image: python:3.9.7-slim
+    image: ubuntu-latest
     script:
-      - pip install --upgrade pip
+      - apt update --yes && apt install --yes pandoc pip
       - pip install -U -r docs/doc_requirements.txt
       - sphinx-build -b html docs public
     artifacts:
diff --git a/docs/doc_requirements.txt b/docs/doc_requirements.txt
index 23a2855d2ce0648052044e1f1d3cff68fb1edd71..9193726b9de8f0e83dfe55cd403740e748a5f55a 100644
--- a/docs/doc_requirements.txt
+++ b/docs/doc_requirements.txt
@@ -1,5 +1,4 @@
 sphinx>=3
 nbsphinx
 sphinx_rtd_theme
-myst-parser
-pandoc
\ No newline at end of file
+myst-parser
\ No newline at end of file