diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index eca9429ab942059f57fc849d89cc5897deaee803..1b5543c742177f30069aec9edc55c164ba73f690 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -76,13 +76,12 @@ create_perlcritic_rapport:
 
 # PHP codesniffer
 create_php_code_sniffer_rapport:
-  image: php:cli-stretch
   stage: codestyle
   only:
     - branches
   before_script:
     - apt-get update -qq
-    - apt-get install -y -qq  git php-codesniffer
+    - apt-get install -y -qq  git php-cli php-codesniffer
   script:
     - git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
     - find . -type f -name '*.php' -o -name '*.inc' > ./filelist