Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -25,9 +25,9 @@ COPY requirements.txt .
|
|
| 25 |
# Install Python packages
|
| 26 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
-
# Download YOLOv8
|
| 29 |
RUN curl -L --retry 3 --retry-delay 5 -o /app/anpr_yolov8.pt \
|
| 30 |
-
"https://github.com/
|
| 31 |
&& [ -s /app/anpr_yolov8.pt ] || { echo "Error: Model download failed or file is empty"; exit 1; } \
|
| 32 |
&& file /app/anpr_yolov8.pt | grep -q "Python" || { echo "Error: anpr_yolov8.pt is not a valid Python pickle file"; exit 1; }
|
| 33 |
|
|
|
|
| 25 |
# Install Python packages
|
| 26 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 27 |
|
| 28 |
+
# Download YOLOv8 model weights with validation
|
| 29 |
RUN curl -L --retry 3 --retry-delay 5 -o /app/anpr_yolov8.pt \
|
| 30 |
+
"https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8n.pt" \
|
| 31 |
&& [ -s /app/anpr_yolov8.pt ] || { echo "Error: Model download failed or file is empty"; exit 1; } \
|
| 32 |
&& file /app/anpr_yolov8.pt | grep -q "Python" || { echo "Error: anpr_yolov8.pt is not a valid Python pickle file"; exit 1; }
|
| 33 |
|