Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -16
Dockerfile
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
FROM thecooltechguy/comfyui_launcher AS launcher
|
2 |
|
3 |
# Create a non-root user first
|
@@ -26,21 +27,6 @@ RUN chmod +x /start.sh
|
|
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}
|
42 |
-
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 |
+
# Use the base image with your launcher
|
2 |
FROM thecooltechguy/comfyui_launcher AS launcher
|
3 |
|
4 |
# Create a non-root user first
|
|
|
27 |
RUN mkdir /data && chown user:user /data
|
28 |
RUN ln -s /data /app
|
29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
# Switch back to the non-root user for running applications
|
31 |
USER user
|
32 |
+
ENTRYPOINT ["/start.sh"]
|