diff --git a/Dockerfile b/Dockerfile
index 4afca4a3edca54a926fef36aa43c766971f03514..521ece2e2cfb50ebd71e7afd6b6707a9b9870924 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -26,3 +26,6 @@ RUN apt-get update \
 # gluon build fails when running as root
 RUN adduser --quiet --disabled-login --gecos '' build
 USER build:build
+# workaround for fatal: detected dubious ownership in repository at '/builds/firmware/site-ffs'
+# https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29022
+RUN git config --global --add safe.directory '*'