LVKinyanjui commited on
Commit
a8d6d0a
·
1 Parent(s): 199a5f9

Added the NVIDIA container toolkit

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile CHANGED
@@ -9,4 +9,19 @@ ENV HF_HOME="/app/.cache"
9
  # DO NOT USE: Depreccated
10
  # ENV TRANSFORMERS_CACHE="/app/.cache"
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  CMD ["f5-tts_infer-gradio", "--port 7860"]
 
9
  # DO NOT USE: Depreccated
10
  # ENV TRANSFORMERS_CACHE="/app/.cache"
11
 
12
+ RUN apt update \
13
+ && apt install -y curl sed
14
+
15
+ # Add NVIDIA Container Toolkit
16
+ ## https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html
17
+
18
+ RUN curl -fsSL https://nvidia.github.io/libnvidia-container/gpgkey | gpg --dearmor -o /usr/share/keyrings/nvidia-container-toolkit-keyring.gpg \
19
+ && curl -s -L https://nvidia.github.io/libnvidia-container/stable/deb/nvidia-container-toolkit.list | \
20
+ sed 's#deb https://#deb [signed-by=/usr/share/keyrings/nvidia-container-toolkit-keyring.gpg] https://#g' | \
21
+ tee /etc/apt/sources.list.d/nvidia-container-toolkit.list \
22
+
23
+ && apt update \
24
+ && apt install -y nvidia-container-toolkit \
25
+ && rm -rf /var/lib/apt/lists/*
26
+
27
  CMD ["f5-tts_infer-gradio", "--port 7860"]