From 5261e382a52e855da7e9730a8bb442e160675b49 Mon Sep 17 00:00:00 2001 From: Tariq Ibrahim Date: Wed, 11 Dec 2024 11:59:41 -0600 Subject: [PATCH] [ubuntu24.04] grant _apt user root privileges Signed-off-by: Tariq Ibrahim --- ubuntu24.04/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ubuntu24.04/Dockerfile b/ubuntu24.04/Dockerfile index 0c3e17ee..27225d8e 100644 --- a/ubuntu24.04/Dockerfile +++ b/ubuntu24.04/Dockerfile @@ -67,7 +67,9 @@ ADD install.sh /tmp RUN apt-key del 7fa2af80 && OS_ARCH=${TARGETARCH/amd64/x86_64} && OS_ARCH=${OS_ARCH/arm64/sbsa} && \ apt-key adv --fetch-keys "https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/${OS_ARCH}/3bf863cc.pub" -RUN /tmp/install.sh depinstall +RUN usermod -o -u 0 -g 0 _apt && \ + /tmp/install.sh depinstall + COPY nvidia-driver /usr/local/bin