Update Dockerfile
Browse files- Dockerfile +8 -2
Dockerfile
CHANGED
|
@@ -12,12 +12,18 @@ WORKDIR /app
|
|
| 12 |
# Copy the requirements file
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
-
# Install Python dependencies
|
| 16 |
RUN pip install --upgrade pip
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
# Copy the rest of the application code
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
# Command to run the app
|
| 23 |
CMD ["python", "app.py"]
|
|
|
|
|
|
| 12 |
# Copy the requirements file
|
| 13 |
COPY requirements.txt .
|
| 14 |
|
| 15 |
+
# Install Python dependencies
|
| 16 |
RUN pip install --upgrade pip
|
| 17 |
+
|
| 18 |
+
# Install torch, torchvision, and torchaudio with the specified extra index URL
|
| 19 |
+
RUN pip install torch==2.0.1+cu118 torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu118
|
| 20 |
+
|
| 21 |
+
# Install the rest of the dependencies
|
| 22 |
+
RUN pip install -r requirements.txt
|
| 23 |
|
| 24 |
# Copy the rest of the application code
|
| 25 |
COPY . .
|
| 26 |
|
| 27 |
# Command to run the app
|
| 28 |
CMD ["python", "app.py"]
|
| 29 |
+
|