diff --git a/templates/Dockerfile.j2 b/templates/Dockerfile.j2
index d28343d0bdf3cf955e9b476e2514d3bc66e28aeb..7819b042eb0096ce4b44417623373b39998e8c75 100644
--- a/templates/Dockerfile.j2
+++ b/templates/Dockerfile.j2
@@ -7,7 +7,7 @@ COPY ./id_ed25519.sources /root/.ssh/
 COPY ./ssh_config /root/.ssh/config
 {% if git_private_keys is defined %}
 # Install private keys
-COPY ./id_rsa ~root/.ssh/
+COPY ./id_rsa /root/.ssh/
 {% endif %}
 # Install private repos
 COPY ./private/* /opt/odoo/private/