diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c32bec95b55176710566d8f381f159cec91d6ab1..dfafd344de27e47de2266109d99f80f50d64b154 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,7 +8,6 @@ cache:
 
 before_script:
   - npm install gitbook-cli -g # install gitbook
-  - npm install pyyaml
   - gitbook fetch 3.2.3 # fetch final stable version
   - gitbook install # add any requested plugins in book.json
 
@@ -22,8 +21,10 @@ test:
     - master
     
 build:
+  image: docker.km3net.de/base/python:3
   stage: build
   script:
+    - pip install pyyaml
     - python make_documents.py
     - pandoc Deliverable_4-8.md -f markdown -t docx -s -o Deliverable_4-8.docx
     - pandoc Deliverable_4-9.md -f markdown -t docx -s -o Deliverable_4-9.docx