diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 77e0e8247f4836f202f1225ed8c5be18bd82586e..92b1c34f817617edbe3048ab70c19b41fed4cd6a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,11 +4,13 @@ stages:
   - deploy
 
 before_script:
+  - apk update
+  - python -m pip install --upgrade pip
   - pip install -U sphinx
   - pip install sphinxcontrib-svg2pdfconverter
-  - pip install latexmk.py
   - pip install sphinx_rtd_theme
   - apk add texlive-full
+  - apk add make
 
 pages:
   stage: deploy