diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 802a2ab8de3eac1baa49b4994da0bab547a3bd73..a5d8904afbe5e877f38094336da23acefd6e2a23 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -88,24 +88,26 @@ create_manpages_lint_report:
 
 # fusiondirectory-update-locale
 fusiondirectory-update-locale:
+  image: php:cli-stretch
   stage: transifex
   only:
     - branches
   before_script:
     - apt-get update -qq
-    - apt-get install -y -qq gettext git php-cli
+    - apt-get install -y -qq gettext git
   script:
     - git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
     - ../dev-tools/locale-scripts/fusiondirectory-update-locale -g
 
 # Update transifex
 update-transifex:
+  image: php:cli-stretch
   stage: transifex
   only:
     - /^1.*$/
   before_script:
     - apt-get update -qq
-    - apt-get install -y -qq gettext git php-cli transifex-client
+    - apt-get install -y -qq gettext git transifex-client
   script:
     - git clone https://gitlab.fusiondirectory.org/fusiondirectory/dev-tools.git ../dev-tools
     - echo $'[https://www.transifex.com]\nhostname = https://www.transifex.com\nusername = '"$TRANSIFEX_USER"$'\npassword = '"$TRANSIFEX_PASSWORD"$'\ntoken = '"$TRANSIFEX_API_TOKEN"$'\n' > ~/.transifexrc