Last active
May 25, 2025 16:28
-
-
Save stefanthoss/ec1ebb3456078c077d1835ebf2cf97e9 to your computer and use it in GitHub Desktop.
Install Nvidia drivers in an ARM64 Dockerfile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ARG NVIDIA_DRIVER_VERSION=570.153.02 | |
ARG NVIDIA_DRIVER_FILENAME="NVIDIA-Linux-aarch64-${NVIDIA_DRIVER_VERSION}.run" | |
RUN apt-get update \ | |
&& apt-get install -y --no-install-recommends \ | |
ca-certificates \ | |
kmod \ | |
wget \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN wget -O "/tmp/${NVIDIA_DRIVER_FILENAME}" "https://us.download.nvidia.com/XFree86/aarch64/${NVIDIA_DRIVER_VERSION}/${NVIDIA_DRIVER_FILENAME}" \ | |
&& chmod +x "/tmp/${NVIDIA_DRIVER_FILENAME}" \ | |
&& bash -c "/tmp/${NVIDIA_DRIVER_FILENAME} --silent --no-kernel-module" \ | |
&& rm "/tmp/${NVIDIA_DRIVER_FILENAME}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment