Avoid unsafe git error when container user and file config volume permissions don't match (#6843)

This commit is contained in:
Pieter Viljoen authored and GitHub committed 2024-06-04 13:34:47 +12:00
1 parent b8d2a6f574
commit 05491e756b
2 files changed
+3 -5

No files matched your search

+3
View File
@@ -100,6 +100,9 @@ RUN --mount=type=tmpfs,target=/root/.cargo if [ "$TARGETARCH$TARGETVARIANT" = "a
--break-system-packages --no-cache-dir -r /requirements.txt -r /requirements_optional.txt \
&& /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/*'
# ======================= docker-type image =======================
FROM base AS docker