Skip to content

Commit 5b08ae3

Browse files
committed
Refactor Dockerfile to include CUDA environment variables in /etc/profile
1 parent ffa09be commit 5b08ae3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OS/ubuntu/24.04/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ RUN chmod +x /usr/start/startup.sh && \
3636
useradd -m -s /bin/bash devbox && \
3737
usermod -aG sudo devbox && \
3838
echo 'devbox ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
39-
echo 'export PATH=/usr/local/cuda/bin:$PATH' >> /root/.bashrc && \
40-
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> /root/.bashrc && \
39+
echo 'export PATH=/usr/local/cuda/bin:$PATH' >> /etc/profile && \
40+
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> /etc/profile && \
4141
rm -rf /tmp/* && \
4242
mkdir -p /home/devbox/.ssh && \
4343
chown -R devbox:devbox /home/devbox/.ssh && \

0 commit comments

Comments
 (0)