From 5b995f1729b81d6aedafd87d04885c04fb9d0e26 Mon Sep 17 00:00:00 2001
From: Guiillaume Hemmen <guillaume@van-hemmen.com>
Date: Wed, 25 Jun 2025 18:34:31 +0000
Subject: [PATCH] #0000 - Update Dockerfile to adjust .gitignore URL for
 enhanced JetBrains support

---
 Dockerfile | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index bbae81c..7fd2fed 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -44,9 +44,6 @@ RUN echo "PS1='🐳 \[\033[1;36m\] \[\033[1;34m\]\W\[\033[0;35m\] \[\033[1;36m\]
     mkdir -p /workspaces && \
     chown coder:coder /home/coder/.bashrc && \
     chown -R coder:coder /workspaces && \
-    # Set up 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 \
@@ -61,6 +58,10 @@ ENV BASH_ENV /home/coder/.bash_env
 RUN touch "${BASH_ENV}" && \
     echo '. "${BASH_ENV}"' >> ~/.bashrc
 
+# Set up global gitignore
+RUN curl -sL ${GITIGNORE_URL} -o /home/coder/.gitignore && \
+    git config --global core.excludesfile /home/coder/.gitignore
+
 # Install Node.js using NVM
 RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | PROFILE="${BASH_ENV}" bash && \
     . $BASH_ENV && \