Update Dockerfile
Browse files- 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 |
-
#
|
|
|
|
|
|
|
|
|
|
| 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
|