diff --git a/ci-templates/syntax-check.yml b/ci-templates/syntax-check.yml
index ccf1df27eed73b357173f453efb031414b956e53..4ecbab1babd74ebe91e994d87927962bca9986c2 100644
--- a/ci-templates/syntax-check.yml
+++ b/ci-templates/syntax-check.yml
@@ -20,6 +20,7 @@ clang_format:
 ## other options like pylint, but much faster and less strict
 ##########################################################
 python_syntax:
+  image: alpine:3.15 # python2 is no longer available in alpine:3.16
   before_script:
     - apk add --update python2
   stage: build