diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 73e095fa82af5f2976aa68fd3db02dc21744f270..854da2aae297600d6fb9b8d5aa0616a30c5fa52c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,18 +1,24 @@
-image: docker:latest
+image: docker:24.0.5  # Use the latest version of Docker available
 
 services:
-  - docker:dind
+  - name: docker:24.0.5-dind  # Use the Docker-in-Docker image
+    command: ["--tls=false"]
 
 variables:
   # Define the Docker image name using the GitLab CI environment variables
   IMAGE_NAME: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
 
+  # Ensure Docker commands are sent to the Docker-in-Docker service
+  DOCKER_HOST: tcp://docker:2375/
+  DOCKER_TLS_CERTDIR: ""  # Disable Docker's TLS feature since it's not needed here
+
 before_script:
   # Login to the GitLab Container Registry
   - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
 
 stages:
   - build
+  - deploy
 
 build:
   stage: build