From 08c7fcd740fc0807e7de1810950c40fc4ac93013 Mon Sep 17 00:00:00 2001 From: Sipalste <99645608+SiPaRadix@users.noreply.github.com> Date: Tue, 11 Jun 2024 13:35:01 +0200 Subject: [PATCH] fix: avoid dubious ownership git warning (#242) --- {{ cookiecutter.__project_name_kebab_case }}/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/{{ cookiecutter.__project_name_kebab_case }}/Dockerfile b/{{ cookiecutter.__project_name_kebab_case }}/Dockerfile index 3ba3ea8..c775fb9 100644 --- a/{{ cookiecutter.__project_name_kebab_case }}/Dockerfile +++ b/{{ cookiecutter.__project_name_kebab_case }}/Dockerfile @@ -75,6 +75,7 @@ RUN --mount=type=cache,target=/var/cache/apt/ \ sh -c "$(curl -fsSL https://starship.rs/install.sh)" -- "--yes" && \ usermod --shell /usr/bin/zsh user && \ echo 'user ALL=(root) NOPASSWD:ALL' > /etc/sudoers.d/user && chmod 0440 /etc/sudoers.d/user +RUN git config --system --add safe.directory '*' USER user # Install the development Python dependencies in the virtual environment.