diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e11ad7be19ea467d2c2765d077e32bb1863ac470..1d6ba0086765a59b2de64e4a5a1236726a0a0ecc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,8 +2,8 @@ stages:          # List of stages for jobs, and their order of execution
   - deploy
 build-job:       # This job runs in the build stage, which runs first.
   stage: deploy
+  image: maven:latest
   script:
-    - apk add openjdk11-jre-headless
     - mvn compile assembly:single
   artifacts:
      name: "release"