Skip to content

Commit 841eb0f

Browse files
committed
Add safe.directory to git config in Docker image to fix file ownership issues
1 parent fee9186 commit 841eb0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build/dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ FROM rapidsai/devcontainers:25.10-cpp-cuda12.9
22

33
COPY . /pyhpc-tutorial
44

5-
RUN pip install --root-user-action ignore -r /pyhpc-tutorial/build/requirements.txt
5+
RUN pip install --root-user-action ignore -r /pyhpc-tutorial/build/requirements.txt \
6+
git config --unset-all "http.https://github.com/.extraheader" \
7+
git config --global --add safe.directory /pyhpc-tutorial
68

79
WORKDIR /pyhpc-tutorial/notebooks
810

9-
RUN git config --unset-all "http.https://github.com/.extraheader"
10-
1111
ENTRYPOINT git pull && /bin/bash

0 commit comments

Comments
 (0)