diff --git a/10.0.Dockerfile b/10.0.Dockerfile
index 938b40186bba5df7189a5b94ae6f4633feba4820..b028f27e8d81f3a70d3aea67359a2781052cba40 100644
--- a/10.0.Dockerfile
+++ b/10.0.Dockerfile
@@ -52,7 +52,7 @@ RUN set -x; \
         rm -rf /var/lib/apt/lists/* wkhtmltox.deb
 
 # Add Git Known Hosts
-COPY ./ssh_known_git_hosts ~root/.ssh/known_hosts
+COPY ./ssh_known_git_hosts /root/.ssh/known_hosts
 
 # Install Odoo and remove not French translations and .git directory to limit amount of data used by container
 RUN set -x; \
diff --git a/12.0.Dockerfile b/12.0.Dockerfile
index 3c6d7d9b5a0176eda47a7855de52b1432a77a289..9e2bd4da84026f3e9c0a71c35f233efd36f76795 100644
--- a/12.0.Dockerfile
+++ b/12.0.Dockerfile
@@ -48,7 +48,7 @@ RUN set -x; \
         rm -rf /var/lib/apt/lists/* wkhtmltox.deb
 
 # Add Git Known Hosts
-COPY ./ssh_known_git_hosts ~root/.ssh/known_hosts
+COPY ./ssh_known_git_hosts /root/.ssh/known_hosts
 
 # Install Odoo and remove not French translations and .git directory to limit amount of data used by container
 RUN set -x; \
diff --git a/12.0_ml.Dockerfile b/12.0_ml.Dockerfile
index b3e7a32ea00dbf66dee97ab3d92ee7e906ac78c4..3e6e65a0949fb91270a44845346d6495571538f9 100644
--- a/12.0_ml.Dockerfile
+++ b/12.0_ml.Dockerfile
@@ -48,7 +48,7 @@ RUN set -x; \
         rm -rf /var/lib/apt/lists/* wkhtmltox.deb
 
 # Add Git Known Hosts
-COPY ./ssh_known_git_hosts ~root/.ssh/known_hosts
+COPY ./ssh_known_git_hosts /root/.ssh/known_hosts
 
 # Install Odoo and remove not French translations and .git directory to limit amount of data used by container
 RUN set -x; \