From ed928aca3917d64350caa3b5f18d538dd07ee4dd Mon Sep 17 00:00:00 2001 From: Dmitri Smirnov Date: Thu, 16 May 2024 14:30:59 -0400 Subject: [PATCH] chore: run non-interactive commands in login shell --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ca3c4bc..9ba56b0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,8 @@ EOF # Strip all the binaries #RUN find -L /spack/opt/spack -type f -exec readlink -f '{}' \; | xargs file -i | grep 'charset=binary' | grep 'x-executable\|x-archive\|x-sharedlib' | awk -F: '{print $1}' | xargs strip -S -RUN sed -i 's/ exec "\/bin\/bash"/ exec "\/bin\/bash" "-l"/g' /opt/nvidia/nvidia_entrypoint.sh +RUN sed -i 's/ exec "\/bin\/bash"/ exec "\/bin\/bash" "-l"/g' /opt/nvidia/nvidia_entrypoint.sh \ + && sed -i 's/ exec "$@"/ exec "\/bin\/bash" "-l" "-c" "$*"/g' /opt/nvidia/nvidia_entrypoint.sh COPY <<"EOF" /tmp/patch_spack_default_modules.yaml include: