muddasser commited on
Commit
a8264d3
·
verified ·
1 Parent(s): fa94469

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -1
Dockerfile CHANGED
@@ -29,7 +29,7 @@ RUN pip install --no-cache-dir -r requirements.txt
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
 
34
  # Copy app code
35
  COPY app.py .
 
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 -E "Python|data|gzip" || { echo "Error: anpr_yolov8.pt is not a valid file type"; exit 1; }; }
33
 
34
  # Copy app code
35
  COPY app.py .