diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 0113fa9023cdfe4ec226a4d3e2155687057f5985..c981ef5773e6bc242231a627328e6a9e99810d1a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,11 @@ stages:
 
 build:
   stage: build
+  image: ubuntu:latest
+  before_script:
+    - apt-get update && apt-get install -y curl
+    - curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
+    - chmod +x /usr/local/bin/docker-compose
   script:
     - docker-compose build
   only: