diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c6a57b0693161dc88219a4a662d53776a53ea6f0..41414958dece5acce00615706a1d18e571d27865 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -86,15 +86,12 @@ build_front:
 
 pages:
   stage: test
-  image: alpine
+  image: python:3.6-alpine
   before_script:
     - cd docs
   script:
-    - apk --no-cache add py2-pip python-dev
     - pip install sphinx
-    - apk --no-cache add make
-    - make html
-    - mv _build/html/ ../public
+    - python -m sphinx . ../public
   artifacts:
     paths:
       - public