1#================= 2# Setup git to access working directory across docker boundary. 3# This avoids the "fatal: detected dubious ownership in repository XYZ" 4# git error. Using "--system" makes the setting work 5# for all users or even current user is not properly defined 6# (which can happen e.g. inside execution environment 7# of a bazel action) 8 9RUN git config --system --add safe.directory '*' 10RUN git config --system protocol.file.allow always 11