diff --git a/core/entrypoint.sh b/core/entrypoint.sh
index 6aa71eea5b865cac9904171a840c1018c9ffd97c..3e0729ca7a07ac13faa4e68035d9363540c61cf2 100644
--- a/core/entrypoint.sh
+++ b/core/entrypoint.sh
@@ -28,7 +28,7 @@ file_env() {
 	elif [ "${!fileVar:-}" ]; then
 		val="$(< "${!fileVar}")"
 	fi
-	cat >> ~/.profile <<EOF
+	cat >> /root/.profile <<EOF
 EOF
 	echo "the value of variable ${var} is set" >&2
   # make them also available in preparatory steps until container starts