1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-23 23:21:00 +01:00

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} \
-type f \
-path "*/__pycache__/*" \
-exec rm -f {} \;
# Trust directory, required for git >= 2.35.2
RUN git config --global --add safe.directory /docs &&\
git config --global --add safe.directory /site
-exec rm -f {} \; \
&& \
git config --system --add safe.directory /docs \
&& \
git config --system --add safe.directory /site
# Set working directory
WORKDIR /docs