andevs commited on
Commit
6c8e35b
·
verified ·
1 Parent(s): e5e20ba

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -2,13 +2,13 @@ FROM python:3.10-slim
2
 
3
  WORKDIR /app
4
 
5
- # Install system dependencies
6
  RUN apt-get update && apt-get install -y \
7
- libgl1-mesa-glx \
8
  libglib2.0-0 \
9
  libsm6 \
10
  libxext6 \
11
- libxrender-dev \
12
  libgomp1 \
13
  wget \
14
  && rm -rf /var/lib/apt/lists/*
@@ -18,7 +18,7 @@ COPY requirements.txt .
18
  # Install Python dependencies
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
- # Install CPU-only versions of PyTorch (smaller, no GPU needed)
22
  RUN pip install --no-cache-dir torch==2.1.0 --index-url https://download.pytorch.org/whl/cpu
23
  RUN pip install --no-cache-dir torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cpu
24
 
 
2
 
3
  WORKDIR /app
4
 
5
+ # Install system dependencies (updated package names for Debian Trixie)
6
  RUN apt-get update && apt-get install -y \
7
+ libgl1 \
8
  libglib2.0-0 \
9
  libsm6 \
10
  libxext6 \
11
+ libxrender1 \
12
  libgomp1 \
13
  wget \
14
  && rm -rf /var/lib/apt/lists/*
 
18
  # Install Python dependencies
19
  RUN pip install --no-cache-dir -r requirements.txt
20
 
21
+ # Install CPU-only versions of PyTorch
22
  RUN pip install --no-cache-dir torch==2.1.0 --index-url https://download.pytorch.org/whl/cpu
23
  RUN pip install --no-cache-dir torchvision==0.16.0 --index-url https://download.pytorch.org/whl/cpu
24