Add default git configuration to Dockerfiles for safe.directory

This commit is contained in:
Luis Eduardo
2025-02-03 04:37:23 +00:00
parent a483c327b5
commit 0b625fc88e
2 changed files with 8 additions and 0 deletions

View File

@@ -82,6 +82,10 @@ RUN set -e && \
# Make binaries executable
chmod +x /usr/local/dl-bin/*
# Default git config
# https://github.com/golangci/golangci-lint/issues/4033
RUN git config --global --add safe.directory '*'
# Go to the app dir, delete the temporary dir and create backups dir
WORKDIR /app
RUN rm -rf /app/temp && \

View File

@@ -82,6 +82,10 @@ RUN set -e && \
# Make binaries executable
chmod +x /usr/local/dl-bin/*
# Default git config
# https://github.com/golangci/golangci-lint/issues/4033
RUN git config --global --add safe.directory '*'
# Go to the app dir, delete the temporary dir and create backups dir
WORKDIR /app
RUN rm -rf /app/temp && \