diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 232cc0f9fd80ad247a28da88cbf86f92a1eedf39..5631f1e948c83a37d373e7ce4c5ac09b16e2e5c2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -125,10 +125,10 @@ ubuntu:i686:
 
 # doc template
 .doc: &doc
-  script:
-    - pip3 install setuptools sphinx
-    - pip install matplotlib numpy scipy six coverage pytest pytest-cov
+  before_script:
+    - pip3 install sphinx sphinxcontrib-bibtex
     - pip3 install -e . --no-deps
+  script:
     - python3 setup.py build_sphinx
     - cp -r build/sphinx/html public
   artifacts:
@@ -139,7 +139,7 @@ ubuntu:i686:
 pages:
   <<: *doc
   # image: registry.lis-lab.fr:5005/dev/ltfatpy/ubuntu:X86_64
-  image: python:3.9
+  image: registry.lis-lab.fr:5005/dev/ltfatpy/python-ci:3.10
   tags:
     - docker
   only: