Skip to content

Commit

Permalink
Refactor Dockerfile to include CUDA environment variables in /etc/pro…
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
cbluebird committed Dec 11, 2024
1 parent cde85f4 commit df331ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions OS/ubuntu-cuda/24.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ RUN chmod +x /usr/start/startup.sh && \
useradd -m -s /bin/bash devbox && \
usermod -aG sudo devbox && \
echo 'devbox ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
echo 'export PATH=/usr/local/cuda/bin:$PATH' >> /etc/profile && \
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> /etc/profile && \
rm -rf /tmp/* && \
mkdir -p /home/devbox/.ssh && \
chown -R devbox:devbox /home/devbox/.ssh && \
Expand Down
2 changes: 0 additions & 2 deletions OS/ubuntu/24.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ RUN chmod +x /usr/start/startup.sh && \
useradd -m -s /bin/bash devbox && \
usermod -aG sudo devbox && \
echo 'devbox ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers && \
echo 'export PATH=/usr/local/cuda/bin:$PATH' >> /etc/profile && \
echo 'export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH' >> /etc/profile && \
rm -rf /tmp/* && \
mkdir -p /home/devbox/.ssh && \
chown -R devbox:devbox /home/devbox/.ssh && \
Expand Down

0 comments on commit df331ef

Please sign in to comment.