diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 1dd21582ec55e31d69685f7894f56b04326ef3ec..25f7524fd002844081b47273d5bfac2e0daa06c0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -16,7 +16,5 @@ Build docker image:
   before_script:
     - echo -n $CI_REGISTRY_PASSWORD | docker login -u $CI_REGISTRY_USER --password-stdin $CI_REGISTRY
   script:
-    - git clone https://github.com/stac-utils/pgstac.git
-    - cd pgstac
-    - docker build --tag $IMG .
+    - docker build --tag $IMG https://github.com/stac-utils/pgstac
     - docker push $IMG