Adjusted git config in Dockerfile (#6468)

* Dockerfile: Write to /etc/gitconfig for all users

* Merge git config commands into previous RUN
This commit is contained in:
iBug 2023-12-09 18:04:23 +08:00 committed by GitHub
parent 31eafc9d4b
commit 73fcef96cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,11 +83,11 @@ RUN \
find ${PACKAGES} \ find ${PACKAGES} \
-type f \ -type f \
-path "*/__pycache__/*" \ -path "*/__pycache__/*" \
-exec rm -f {} \; -exec rm -f {} \; \
&& \
# Trust directory, required for git >= 2.35.2 git config --system --add safe.directory /docs \
RUN git config --global --add safe.directory /docs &&\ && \
git config --global --add safe.directory /site git config --system --add safe.directory /site
# Set working directory # Set working directory
WORKDIR /docs WORKDIR /docs