KingHacker9000 commited on
Commit
72610cd
·
1 Parent(s): c005a49

Change Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -8
Dockerfile CHANGED
@@ -4,16 +4,15 @@ FROM ghcr.io/huggingface/text-generation-inference:3.3.4
4
  # ---------- OS-level build tools & minimal CUDA compiler ----------
5
  RUN apt-get update && \
6
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
7
- build-essential git cmake ninja-build pkg-config curl ca-certificates \
8
- libgl1-mesa-glx libegl1-mesa-dev libxrender-dev libxi-dev && \
9
- curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64/3bf863cc.pub | \
10
- gpg --dearmor -o /usr/share/keyrings/cuda-archive-keyring.gpg && \
11
  echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] \
12
- https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2004/x86_64 /" \
13
  > /etc/apt/sources.list.d/cuda.list && \
14
- apt-get update && \
15
- apt-get install -y --no-install-recommends cuda-compiler-11-8 && \
16
- rm -rf /var/lib/apt/lists/*
17
 
18
  # ---------- Make CMake happy if it looks for `cicc` ----------
19
  RUN if ! command -v cicc >/dev/null; then \
 
4
  # ---------- OS-level build tools & minimal CUDA compiler ----------
5
  RUN apt-get update && \
6
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
7
+ build-essential git cmake ninja-build pkg-config curl ca-certificates gnupg && \
8
+ curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64/3bf863cc.pub | \
9
+ gpg --dearmor --batch --yes -o /usr/share/keyrings/cuda-archive-keyring.gpg && \
 
10
  echo "deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] \
11
+ https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2204/x86_64 /" \
12
  > /etc/apt/sources.list.d/cuda.list && \
13
+ apt-get update && \
14
+ apt-get install -y --no-install-recommends cuda-compiler-11-8 && \
15
+ rm -rf /var/lib/apt/lists/*
16
 
17
  # ---------- Make CMake happy if it looks for `cicc` ----------
18
  RUN if ! command -v cicc >/dev/null; then \