Skip to content

Commit

Permalink
fix: set safe.directory in Dockerfile (#571)
Browse files Browse the repository at this point in the history
to avoid dubious ownership warning for git
  • Loading branch information
wsxiaoys authored Oct 16, 2023
1 parent a8e2aaf commit 28b5ea3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# Disable safe directory in docker
# Context: https://github.com/git/git/commit/8959555cee7ec045958f9b6dd62e541affb7e7d9
RUN git config --system --add safe.directory "*"

# Make link to libnvidia-ml.so (NVML) library
# so that we could get GPU stats.
RUN ln -s /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1 \
Expand Down

0 comments on commit 28b5ea3

Please sign in to comment.