lucky0146 commited on
Commit
8206d0c
·
verified ·
1 Parent(s): a1ba885

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -10,14 +10,14 @@ RUN apt-get update && apt-get install -y \
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
- # Install PyTorch CPU from official repo
 
 
 
14
  RUN pip install --upgrade pip && \
 
15
  pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
16
 
17
- # Install remaining requirements
18
- COPY requirements.txt .
19
- RUN pip install --no-cache-dir -r requirements.txt
20
-
21
  # Clone CodeFormer
22
  RUN git clone https://github.com/sczhou/CodeFormer
23
  WORKDIR /CodeFormer
 
10
  git \
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
+ # Copy requirements FIRST
14
+ COPY requirements.txt /tmp/requirements.txt
15
+
16
+ # Install core dependencies
17
  RUN pip install --upgrade pip && \
18
+ pip install --no-cache-dir -r /tmp/requirements.txt && \
19
  pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
20
 
 
 
 
 
21
  # Clone CodeFormer
22
  RUN git clone https://github.com/sczhou/CodeFormer
23
  WORKDIR /CodeFormer