diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index acffa54845d8ca8a5efc848649b5d0b191f5aca0..cd0028746e666ecc12bec2fcad7b160104a32ae0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -126,10 +126,8 @@ integration test 4-3:
     - phpunit --configuration phpunit-integration.xml
 
 apigen docs:
-  image: wpdesknet/phpunit-woocommerce:1-0
+  image: vfac/apigen
   stage: pre-deploy
-  dependencies:
-      - build php
   artifacts:
     expire_in: 1 day
     name: "docs"
@@ -138,7 +136,7 @@ apigen docs:
   script:
     - ls -l
     - php --version
-    - php composer.phar docs
+    - php /app/vendor/bin/apigen
   only:
     manual