[docker] Avoid unsafe git error when container user and file config volume permissions don't match (#6873)

This commit is contained in:
Pieter Viljoen 2024-06-07 12:36:07 -07:00 committed by GitHub
parent ccab57fc58
commit 276eea2b69
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -101,7 +101,7 @@ RUN --mount=type=tmpfs,target=/root/.cargo if [ "$TARGETARCH$TARGETVARIANT" = "a
&& /platformio_install_deps.py /platformio.ini --libraries
# Avoid unsafe git error when container user and file config volume permissions don't match
RUN git config --system --add safe.directory '/config/*'
RUN git config --system --add safe.directory '*'
# ======================= docker-type image =======================