From 144139202680bf4b66f2c7637f4dfa0ec2ec60f2 Mon Sep 17 00:00:00 2001
From: artmakh <ar.makhortov@gmail.com>
Date: Tue, 14 Jan 2025 20:08:55 +0700
Subject: [PATCH 1/2] fix: Zk-environment fix Nvidia repo add

---
 docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile | 2 +-
 docker/zk-environment/22.04_amd64_cuda_12.Dockerfile   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile b/docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile
index 990f813852d1..e20b92edfc9d 100644
--- a/docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile
+++ b/docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile
@@ -129,7 +129,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
     curl -fsSLO https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/${NVARCH}/cuda-keyring_1.0-1_all.deb && \
     dpkg -i cuda-keyring_1.0-1_all.deb && \
     apt-get purge --autoremove -y curl \
-    && rm -rf /var/lib/apt/lists/*
+    rm -rf /var/lib/apt/lists/*
 
 ENV CUDA_VERSION 11.8.0
 
diff --git a/docker/zk-environment/22.04_amd64_cuda_12.Dockerfile b/docker/zk-environment/22.04_amd64_cuda_12.Dockerfile
index 7402a8c49101..b3230edb8c07 100644
--- a/docker/zk-environment/22.04_amd64_cuda_12.Dockerfile
+++ b/docker/zk-environment/22.04_amd64_cuda_12.Dockerfile
@@ -129,7 +129,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
     gnupg2 curl ca-certificates && \
     curl -fsSLO https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/${NVARCH}/cuda-keyring_1.0-1_all.deb && \
     dpkg -i cuda-keyring_1.0-1_all.deb && \
-    && rm -rf /var/lib/apt/lists/*
+    rm -rf /var/lib/apt/lists/*
 
 ENV CUDA_VERSION 12.2.2
 

From 6b516778d07b3947cb3e3dbf013523ae2ecd5d9c Mon Sep 17 00:00:00 2001
From: artmakh <ar.makhortov@gmail.com>
Date: Tue, 14 Jan 2025 20:12:07 +0700
Subject: [PATCH 2/2] Remove purge of curl

---
 docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile | 1 -
 1 file changed, 1 deletion(-)

diff --git a/docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile b/docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile
index e20b92edfc9d..37505a098575 100644
--- a/docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile
+++ b/docker/zk-environment/22.04_amd64_cuda_11_8.Dockerfile
@@ -128,7 +128,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
     gnupg2 curl ca-certificates && \
     curl -fsSLO https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/${NVARCH}/cuda-keyring_1.0-1_all.deb && \
     dpkg -i cuda-keyring_1.0-1_all.deb && \
-    apt-get purge --autoremove -y curl \
     rm -rf /var/lib/apt/lists/*
 
 ENV CUDA_VERSION 11.8.0