matthoffner commited on
Commit
44cac5d
·
1 Parent(s): b8e402b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -2,12 +2,20 @@ FROM nvidia/cuda:12.2.0-devel-ubuntu20.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
 
 
 
 
 
 
 
5
  # Install dependencies
6
  RUN apt update && \
7
- apt install --no-install-recommends -y build-essential python3 python3-pip wget curl git cmake zlib1g-dev libblas-dev && \
8
- apt install -y cuda-libraries-dev-12-2 && \
9
  apt clean && rm -rf /var/lib/apt/lists/*
10
 
 
11
  WORKDIR /app
12
 
13
  # Download ggml and mmproj models from HuggingFace
 
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
+ # Add NVIDIA CUDA Repository
6
+ RUN apt update && apt install -y wget gnupg && \
7
+ wget https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/cuda-ubuntu2004.pin && \
8
+ sudo mv cuda-ubuntu2004.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \
9
+ sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/7fa2af80.pub && \
10
+ sudo add-apt-repository "deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/ /"
11
+
12
  # Install dependencies
13
  RUN apt update && \
14
+ apt install --no-install-recommends -y build-essential python3 python3-pip curl git cmake zlib1g-dev libblas-dev && \
15
+ apt install -y libcublas-dev && \
16
  apt clean && rm -rf /var/lib/apt/lists/*
17
 
18
+
19
  WORKDIR /app
20
 
21
  # Download ggml and mmproj models from HuggingFace