diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 286078c9ecb712f2d7f25989c4787b0bfa26b924..7d49cc10c916cf488689254e76062b89c831cf65 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,6 +2,7 @@
 create_pdf:
   image: ${CI_REGISTRY_IMAGE}
   script:
+    -  pip install -r requirements.txt
     - python3 example.py
   artifacts:
     paths:
diff --git a/Dockerfile b/Dockerfile
index 24a7fa1ecf42e541a590156348dab66ee5aad5ba..5c8cdcafc4ec2df9e8f5d1c9d72b97b46bcd76e1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -5,6 +5,3 @@ WORKDIR /ci
 
 RUN mkdir -p /usr/share/fonts/truetype/opensans
 RUN ln -s /ci/OpenSans.ttf /usr/share/fonts/truetype/opensans/opensans.ttf
-
-# Install matplotlib
-RUN pip install -r requirements.txt