banao-tech commited on
Commit
2e73d26
·
verified ·
1 Parent(s): b9c8787

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 apt-get update -q && \
6
- apt-get install -y --no-install-recommends \
7
- python3-pip \
8
- python3-dev \
9
- ffmpeg \
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