blmdsydm commited on
Commit
0755ca5
1 Parent(s): 7685b4c

Update dockerfile

Browse files

install cudnn in dockerfile

Files changed (1) hide show
  1. dockerfile +3 -1
dockerfile CHANGED
@@ -1,6 +1,6 @@
1
  # docker build -t whisper-webui --build-arg WHISPER_IMPLEMENTATION=whisper .
2
 
3
- FROM nvidia/cuda:11.7.1-cudnn8-devel-ubuntu22.04
4
  EXPOSE 7860
5
 
6
  ARG WHISPER_IMPLEMENTATION=faster-whisper
@@ -12,6 +12,8 @@ ADD . /opt/whisper-webui/
12
  # Further, pip install fails, so we must upgrade pip first.
13
  RUN apt-get -y install python3-tk
14
  RUN python3 -m pip install --upgrade pip
 
 
15
 
16
  RUN if [ "${WHISPER_IMPLEMENTATION}" = "whisper" ]; then \
17
  python3 -m pip install -r /opt/whisper-webui/requirements-whisper.txt; \
 
1
  # docker build -t whisper-webui --build-arg WHISPER_IMPLEMENTATION=whisper .
2
 
3
+ FROM huggingface/transformers-pytorch-gpu
4
  EXPOSE 7860
5
 
6
  ARG WHISPER_IMPLEMENTATION=faster-whisper
 
12
  # Further, pip install fails, so we must upgrade pip first.
13
  RUN apt-get -y install python3-tk
14
  RUN python3 -m pip install --upgrade pip
15
+ RUN wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/libcudnn8_8.5.0.96-1+cuda11.7_amd64.deb
16
+ RUN dpkg -i libcudnn8_8.5.0.96-1+cuda11.7_amd64.deb && rm libcudnn8_8.5.0.96-1+cuda11.7_amd64.deb
17
 
18
  RUN if [ "${WHISPER_IMPLEMENTATION}" = "whisper" ]; then \
19
  python3 -m pip install -r /opt/whisper-webui/requirements-whisper.txt; \