diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3882c1d6a5f7085b95224122a13c1f68cbf29cd1..538951f70f29414ca13f7b301b665a4ca86d2448 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,6 @@
 # Official language image. Look for the different tagged releases at:
 # https://hub.docker.com/r/library/python/tags/
-image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:latest
+image: ${CI_DEPENDENCY_PROXY_DIRECT_GROUP_IMAGE_PREFIX}/python:3.11
 
 # Change pip's cache directory to be inside the project directory since we can
 # only cache local items.