diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 195333f0906c11d498a38760f4b138f9c7486f50..09d3c7681f758244a13ea6fbbad1e2829a12bf78 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,24 +1,21 @@
-image: python:3.7-alpine
+#image: python:3.7-alpine
+image: registry.forgemia.inra.fr/umr-gdec/magatt
 
 test:
-  stage: test
+  stage: deploy
   script:
-  - pip install -U sphinx
-  - pip install sphinx sphinx-rtd-theme
-  - pip install --upgrade myst-parser
-  - sphinx-build -b html docs public
-  rules:
-    - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH
+  - sphinx-build -b html docs public 
+  artifacts:
+    paths:
+    - public
+
     
+# generate sphinx doc, published in gitlab pages
 pages:
   stage: deploy
   script:
-  - pip install -U sphinx
-  - pip install sphinx sphinx-rtd-theme
-  - pip install --upgrade myst-parser
-  - sphinx-build -b html docs public
+  - sphinx-build -b html docs public 
   artifacts:
     paths:
     - public
-  rules:
-    - if: $CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH
+
diff --git a/Dockerfile b/Dockerfile
index 3ea9705648a7151fe00ac6a87cfcc0cdf853bd6d..b6e5b56850516c8ae8a4428fc99c5fd320200a36 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -30,6 +30,7 @@ RUN apt update && \
     pip install pysam && \
     pip install -U sphinx && \
     pip install -U sphinx-rtd-theme && \
+    pip install --upgrade myst-parser && \
 # Clean image
     apt clean -y && \
     pip cache purge && \