Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +5 -9
Dockerfile
CHANGED
@@ -2,15 +2,11 @@ FROM nvidia/cuda:12.2.2-runtime-ubuntu22.04
|
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
-
RUN
|
6 |
-
apt-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
libgl1 \
|
11 |
-
git \
|
12 |
-
wget \
|
13 |
-
&& rm -rf /var/lib/apt/lists/*
|
14 |
|
15 |
COPY requirements.txt .
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
+
RUN chmod 1777 /tmp \
|
6 |
+
&& apt update -q && apt install -y ca-certificates wget libgl1 \
|
7 |
+
&& wget -qO /tmp/cuda-keyring.deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/cuda-keyring_1.1-1_all.deb \
|
8 |
+
&& dpkg -i /tmp/cuda-keyring.deb && apt update -q \
|
9 |
+
&& apt install -y --no-install-recommends libcudnn8 libcublas-12-2
|
|
|
|
|
|
|
|
|
10 |
|
11 |
COPY requirements.txt .
|
12 |
RUN pip install --no-cache-dir -r requirements.txt
|