diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 996325d5bf8ba3aefbe6e34b296c5f2311c84b31..18c38250d8928d9fd055b02757d0ca947d25650c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,6 +33,8 @@ docker-build:
     - docker push "$CI_REGISTRY_IMAGE${tag}"
   # Run this job in a branch where a Dockerfile exists
   rules:
+    - changes:
+      - Dockerfile
     - if: $CI_COMMIT_BRANCH
       exists:
         - Dockerfile