feat: simplify rocm 4.5+
This commit is contained in:
@@ -50,6 +50,14 @@ apt-get clean
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
|
||||
# For ROCm 4.5+
|
||||
RUN <<EOF
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y rocm-ml-sdk rocm-hip-sdk || true
|
||||
sudo apt-get clean
|
||||
sudo rm -rf /var/lib/apt/lists/*
|
||||
EOF
|
||||
|
||||
# Create non-root user
|
||||
RUN <<EOF
|
||||
echo "%sudo ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/sudo-nopasswd
|
||||
|
||||
Reference in New Issue
Block a user