File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- # Base image with CUDA 12.6 and Ubuntu 24.04 (includes Python 3.12)
1+ # Base image with CUDA 12.6 and Ubuntu 24.04
22FROM nvidia/cuda:12.6.0-devel-ubuntu24.04
33
44# Set environment variables
55ENV DEBIAN_FRONTEND=noninteractive
66ENV PYTHONUNBUFFERED=1
77ENV PYTHONDONTWRITEBYTECODE=1
8+ # Fix for Ubuntu 24.04 PEP 668 (allows global pip install)
9+ ENV PIP_BREAK_SYSTEM_PACKAGES=1
810ENV TORCH_CUDA_ARCH_LIST="8.0;8.6;8.9;9.0"
911
1012# Set the working directory
1113WORKDIR /workspace
1214
1315# 1. Install System Dependencies
16+ # CHANGED: 'libgl1-mesa-glx' -> 'libgl1' (Fixes exit code 100)
1417RUN apt-get update && apt-get install -y --no-install-recommends \
1518 git \
1619 wget \
1720 curl \
1821 vim \
1922 ffmpeg \
20- libgl1-mesa-glx \
23+ libgl1 \
2124 libglib2.0-0 \
2225 python3-pip \
2326 python3-dev \
@@ -28,7 +31,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2831RUN ln -s /usr/bin/python3 /usr/bin/python
2932
3033# 3. Install PyTorch 2.7.0 with PINNED dependencies
31- # We pin torchvision==0.22.0 and torchaudio== 2.7.0 to prevent conflicts
34+ # Pinning versions ensures compatibility with PyTorch 2.7
3235RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
3336 pip install --no-cache-dir \
3437 torch==2.7.0 \
You can’t perform that action at this time.
0 commit comments