From aed2b7e0a0842df37771612df5ccccf07b882cab Mon Sep 17 00:00:00 2001
From: Guiillaume Hemmen <guillaume@van-hemmen.com>
Date: Wed, 25 Jun 2025 18:02:45 +0000
Subject: [PATCH] #0000 - Update Dockerfile to configure global .gitignore and
 use `--global` for git excludesfile

---
 Dockerfile | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index b687763..7ca80b9 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -45,9 +45,8 @@ RUN echo "PS1='🐳 \[\033[1;36m\] \[\033[1;34m\]\W\[\033[0;35m\] \[\033[1;36m\]
     chown coder:coder /home/coder/.bashrc && \
     chown -R coder:coder /workspaces && \
     # Set up global gitignore
-    mkdir -p /home/coder/gitignore && \
-    curl -sL ${GITIGNORE_URL} -o /home/coder/global.gitignore && \
-    git config --system core.excludesfile /home/coder/global.gitignore
+    curl -sL ${GITIGNORE_URL} -o /home/coder/.gitignore && \
+    git config --global core.excludesfile /home/coder/.gitignore
 
 # Run trivy to scan the system. Exit code is set to 0 as 1 would never allow to pass the scan due to debian known vulns
 RUN curl -sfL https://raw.githubusercontent.com/aquasecurity/trivy/main/contrib/install.sh | sh -s -- -b /usr/local/bin \