Skip to content

Commit de59eaf

Browse files
authored
Update Dockerfile
1 parent 5d6d2a2 commit de59eaf

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
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
22
FROM nvidia/cuda:12.6.0-devel-ubuntu24.04
33

44
# Set environment variables
55
ENV DEBIAN_FRONTEND=noninteractive
66
ENV PYTHONUNBUFFERED=1
77
ENV PYTHONDONTWRITEBYTECODE=1
8+
# Fix for Ubuntu 24.04 PEP 668 (allows global pip install)
9+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
810
ENV TORCH_CUDA_ARCH_LIST="8.0;8.6;8.9;9.0"
911

1012
# Set the working directory
1113
WORKDIR /workspace
1214

1315
# 1. Install System Dependencies
16+
# CHANGED: 'libgl1-mesa-glx' -> 'libgl1' (Fixes exit code 100)
1417
RUN 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 \
2831
RUN 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
3235
RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \
3336
pip install --no-cache-dir \
3437
torch==2.7.0 \

0 commit comments

Comments
 (0)