Fred808 commited on
Commit
2f40d53
·
verified ·
1 Parent(s): f0dd8b7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -0
Dockerfile CHANGED
@@ -17,6 +17,14 @@ RUN pip install --no-cache-dir --upgrade pip setuptools wheel packaging
17
  # Install CPU-only PyTorch first
18
 
19
  # Copy requirements and install with special handling
 
 
 
 
 
 
 
 
20
 
21
  # Copy application code
22
  COPY . .
 
17
  # Install CPU-only PyTorch first
18
 
19
  # Copy requirements and install with special handling
20
+ COPY requirements.txt .
21
+ RUN pip install --no-cache-dir \
22
+ -r requirements.txt \
23
+ --find-links https://download.pytorch.org/whl/cpu \
24
+ --extra-index-url https://pypi.org/simple && \
25
+ # Install remaining packages that might have been skipped
26
+ pip install --no-cache-dir \
27
+ requests
28
 
29
  # Copy application code
30
  COPY . .