Tomtom84 commited on
Commit
e4f3642
·
verified ·
1 Parent(s): 1105ae7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -1
Dockerfile CHANGED
@@ -7,11 +7,25 @@ RUN apt-get update && \
7
  apt-get install -y \
8
  bash \
9
  git git-lfs \
10
- wget curl procps \
11
  build-essential cmake \
12
  htop vim nano && \
13
  rm -rf /var/lib/apt/lists/*
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  RUN useradd -m -u 1000 user
16
  USER user
17
  ENV PATH="/home/user/.local/bin:$PATH"
@@ -21,6 +35,7 @@ WORKDIR /app
21
 
22
  COPY --chown=user . /app
23
 
 
24
  RUN pip install --no-cache-dir -r requirements.txt
25
  RUN CMAKE_ARGS="-DGGML_CUDA=on" pip install outetts --upgrade
26
 
 
7
  apt-get install -y \
8
  bash \
9
  git git-lfs \
10
+ wget curl procps gnupg \
11
  build-essential cmake \
12
  htop vim nano && \
13
  rm -rf /var/lib/apt/lists/*
14
 
15
+ # NVIDIA CUDA Repository einbinden
16
+ RUN wget https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/cuda-debian12.pin && \
17
+ mv cuda-debian12.pin /etc/apt/preferences.d/cuda-repository-pin-600 && \
18
+ wget https://developer.download.nvidia.com/compute/cuda/12.2.2/local_installers/cuda-repo-debian12-12-2-local_12.2.2-1_amd64.deb && \
19
+ dpkg -i cuda-repo-debian12-12-2-local_12.2.2-1_amd64.deb && \
20
+ cp /var/cuda-repo-debian12-12-2-local/cuda-*-keyring.gpg /usr/share/keyrings/ && \
21
+ apt-get update && \
22
+ apt-get -y install cuda-toolkit-12-2
23
+
24
+ # CUDA ENV-Variablen setzen
25
+ ENV PATH=/usr/local/cuda/bin:${PATH}
26
+ ENV LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH}
27
+ ENV CUDAToolkit_ROOT=/usr/local/cuda
28
+
29
  RUN useradd -m -u 1000 user
30
  USER user
31
  ENV PATH="/home/user/.local/bin:$PATH"
 
35
 
36
  COPY --chown=user . /app
37
 
38
+ RUN pip install --upgrade pip
39
  RUN pip install --no-cache-dir -r requirements.txt
40
  RUN CMAKE_ARGS="-DGGML_CUDA=on" pip install outetts --upgrade
41