Commit
·
72610cd
1
Parent(s):
c005a49
Change Dockerfile
Browse files- 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 |
-
|
| 9 |
-
|
| 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/
|
| 13 |
> /etc/apt/sources.list.d/cuda.list && \
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 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 \
|