Skip to content

Commit 5a8f3d2

Browse files
committed
Fix error handling and syntax for git config commands. Go back to one run command to avoid multiple layers.
1 parent 803b5f1 commit 5a8f3d2

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,9 +2,9 @@ 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
6-
RUN git config --global --unset "http.https://github.com/.extraheader"
7-
RUN git config --global --add safe.directory /pyhpc-tutorial
5+
RUN pip install --root-user-action ignore -r /pyhpc-tutorial/build/requirements.txt \
6+
&& git config --global --unset --all "http.https://github.com/.extraheader" || { code=$?; [ "$code" = 5 ] || exit "$code"; } \
7+
&& git config --global --set --append safe.directory "/pyhpc-tutorial"
88

99
WORKDIR /pyhpc-tutorial/notebooks
1010

0 commit comments

Comments
 (0)