Skip to content

Commit 78b8218

Browse files
authored
Update CUDA Dockerfile dependencies and comments
Updated system dependencies and improved comments for clarity.
1 parent 3ae177a commit 78b8218

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Docker/cuda/cuda.Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ ENV DEBIAN_FRONTEND=noninteractive \
88

99
WORKDIR /app
1010

11+
# Dépendances système pour Python + build C/C++ + OpenCL/BLAS
1112
RUN apt-get update && \
1213
apt-get upgrade -y && \
1314
apt-get install -y --no-install-recommends \
1415
python3 python3-pip python3-dev \
15-
python3.12-venv \ # <<< IMPORTANT
16+
python3-venv python3.12-venv \
1617
git build-essential \
1718
cmake ninja-build \
1819
gcc g++ wget \
@@ -22,14 +23,14 @@ RUN apt-get update && \
2223
echo "libnvidia-opencl.so.1" > /etc/OpenCL/vendors/nvidia.icd && \
2324
rm -rf /var/lib/apt/lists/*
2425

25-
# Création du venv (maintenant possible)
26+
# Création du venv (PEP 668 friendly)
2627
RUN python3 -m venv /opt/venv
2728
ENV PATH="/opt/venv/bin:${PATH}"
2829

2930
# Copie du projet
3031
COPY . .
3132

32-
# Vars pour la build CUDA
33+
# Vars pour la build CUDA de llama-cpp-python
3334
ENV CUDA_DOCKER_ARCH=all \
3435
GGML_CUDA=1 \
3536
FORCE_CMAKE=1 \

0 commit comments

Comments
 (0)