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:
parent
31eafc9d4b
commit
73fcef96cc
10
Dockerfile
10
Dockerfile
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user