francischung222 commited on
Commit
a6147bc
·
1 Parent(s): aee5df5

3rd fix buggy install in requirements.txt

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -10,12 +10,14 @@ RUN apt-get update && apt-get install -y \
10
 
11
  # Copy requirements and install Python packages
12
  COPY requirements.txt .
 
 
13
  # Install torch from CPU wheels explicitly to avoid source builds
14
- RUN pip install --no-cache-dir \
15
  torch==2.2.2 \
16
  --index-url https://download.pytorch.org/whl/cpu \
17
  --extra-index-url https://pypi.org/simple
18
- RUN pip install --no-cache-dir -r requirements.txt
19
 
20
  # Copy application code
21
  COPY . .
 
10
 
11
  # Copy requirements and install Python packages
12
  COPY requirements.txt .
13
+ # Install dependencies (prefer binaries to avoid builds)
14
+ RUN pip install --no-cache-dir --upgrade pip setuptools wheel
15
  # Install torch from CPU wheels explicitly to avoid source builds
16
+ RUN pip install --no-cache-dir --prefer-binary \
17
  torch==2.2.2 \
18
  --index-url https://download.pytorch.org/whl/cpu \
19
  --extra-index-url https://pypi.org/simple
20
+ RUN pip install --no-cache-dir --prefer-binary -r requirements.txt
21
 
22
  # Copy application code
23
  COPY . .