Spaces:
Running
on
A10G
Running
on
A10G
Update Dockerfile
Browse files- Dockerfile +14 -0
Dockerfile
CHANGED
@@ -27,6 +27,20 @@ RUN chmod +x /start.sh
|
|
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"]
|
|
|
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}
|
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"]
|