multimodalart HF Staff commited on
Commit
34c2c14
·
verified ·
1 Parent(s): 4fb5ca8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -8
Dockerfile CHANGED
@@ -1,4 +1,3 @@
1
- # Use the base image with your launcher
2
  FROM thecooltechguy/comfyui_launcher AS launcher
3
 
4
  # Create a non-root user first
@@ -27,15 +26,16 @@ RUN chmod +x /start.sh
27
  RUN mkdir /data && chown user:user /data
28
  RUN ln -s /data /app
29
 
30
- # Install CUDA Toolkit 12.4 base installer and NVIDIA driver
31
- RUN apt-get update && apt-get install -y wget gnupg2 software-properties-common
 
 
32
  RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb
33
  RUN dpkg -i cuda-keyring_1.1-1_all.deb
34
  RUN apt-get update
35
- # Installing CUDA Toolkit 12.4
36
- RUN apt-get -y install cuda-toolkit-12-4
37
- # Installing NVIDIA Drivers (Legacy Kernel Module Flavor)
38
- RUN apt-get install -y cuda-drivers
39
 
40
  # Setting up environment variables for CUDA
41
  ENV PATH=/usr/local/cuda-12.4/bin:${PATH}
@@ -43,4 +43,4 @@ ENV LD_LIBRARY_PATH=/usr/local/cuda-12.4/lib64:${LD_LIBRARY_PATH}
43
 
44
  # Switch back to the non-root user for running applications
45
  USER user
46
- ENTRYPOINT ["/start.sh"]
 
 
1
  FROM thecooltechguy/comfyui_launcher AS launcher
2
 
3
  # Create a non-root user first
 
26
  RUN mkdir /data && chown user:user /data
27
  RUN ln -s /data /app
28
 
29
+ # Install required tools and headers
30
+ RUN apt-get update && apt-get install -y wget gnupg2 software-properties-common build-essential linux-headers-$(uname -r)
31
+
32
+ # Add NVIDIA's package repositories
33
  RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-keyring_1.1-1_all.deb
34
  RUN dpkg -i cuda-keyring_1.1-1_all.deb
35
  RUN apt-get update
36
+
37
+ # Install CUDA Toolkit and NVIDIA drivers
38
+ RUN apt-get -y install cuda-toolkit-12-4 cuda-drivers
 
39
 
40
  # Setting up environment variables for CUDA
41
  ENV PATH=/usr/local/cuda-12.4/bin:${PATH}
 
43
 
44
  # Switch back to the non-root user for running applications
45
  USER user
46
+ ENTRYPOINT ["/start.sh"]