From 698c5fb76c0dc98494f26bbd98706ac1edb5c832 Mon Sep 17 00:00:00 2001 From: Sipalste <99645608+SiPaRadix@users.noreply.github.com> Date: Wed, 15 May 2024 11:09:29 +0000 Subject: [PATCH 1/2] fix: avoid dubious ownership git warning --- {{ 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..4509fab 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. From ea69e76486d6d6191edd65455c685c97763095be Mon Sep 17 00:00:00 2001 From: Sipalste <99645608+SiPaRadix@users.noreply.github.com> Date: Mon, 3 Jun 2024 07:46:50 +0000 Subject: [PATCH 2/2] chore: remove unnecessary whitespace --- {{ cookiecutter.__project_name_kebab_case }}/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/{{ cookiecutter.__project_name_kebab_case }}/Dockerfile b/{{ cookiecutter.__project_name_kebab_case }}/Dockerfile index 4509fab..c775fb9 100644 --- a/{{ cookiecutter.__project_name_kebab_case }}/Dockerfile +++ b/{{ cookiecutter.__project_name_kebab_case }}/Dockerfile @@ -75,7 +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 '*' +RUN git config --system --add safe.directory '*' USER user # Install the development Python dependencies in the virtual environment.