Update Dockerfile
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -13,8 +13,8 @@ WORKDIR /app
|
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
# Copy the wheel files for insightface and dlib
|
| 16 |
-
COPY
|
| 17 |
-
COPY
|
| 18 |
|
| 19 |
# Install pip and upgrade it
|
| 20 |
RUN pip install --upgrade pip
|
|
@@ -27,7 +27,7 @@ RUN pip install /app/dlib-19.22.99-cp310-cp310-win_amd64.whl
|
|
| 27 |
RUN pip install -r requirements.txt
|
| 28 |
|
| 29 |
# Install torch, torchvision, and torchaudio with the specified extra index URL
|
| 30 |
-
RUN pip install torch==2.0.1+cu118 torchvision
|
| 31 |
|
| 32 |
# Copy the rest of the application code
|
| 33 |
COPY . .
|
|
|
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
# Copy the wheel files for insightface and dlib
|
| 16 |
+
COPY insightface-0.7.3-cp310-cp310-win_amd64.whl /app/
|
| 17 |
+
COPY dlib-19.22.99-cp310-cp310-win_amd64.whl /app/
|
| 18 |
|
| 19 |
# Install pip and upgrade it
|
| 20 |
RUN pip install --upgrade pip
|
|
|
|
| 27 |
RUN pip install -r requirements.txt
|
| 28 |
|
| 29 |
# Install torch, torchvision, and torchaudio with the specified extra index URL
|
| 30 |
+
RUN pip install torch==2.0.1+cu118 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
|
| 31 |
|
| 32 |
# Copy the rest of the application code
|
| 33 |
COPY . .
|