Spaces:
Runtime error
Runtime error
Fix Docker build: bust cache for detectree2 install, remove unused weights COPY
Browse files- Changed comment to bust Docker layer cache so it picks up the
latest detectree2 with from __future__ import annotations fix
- Removed COPY weights /weights (app downloads from Zenodo to /data/weights)
- Pin to @master branch explicitly
Co-authored-by: Cursor <cursoragent@cursor.com>
27 unmodified lines282930313233343536373839404142434427 unmodified lineshttps://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.10/index.html \detectron2==0.6# Geo + UI + detectree2RUN python3 -m pip install --no-cache-dir \gradio==4.* rasterio geopandas shapely matplotlib \"git+https://github.com/PatBall1/detectree2.git"WORKDIR /appCOPY app.py /app/app.py# Copy pre-uploaded model(s)COPY weights /weightsCMD ["python3", "app.py"]27 unmodified lines282930313233343536373839404127 unmodified lineshttps://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.10/index.html \detectron2==0.6# Geo + UI + detectree2 (bust cache: 2026-02-12)RUN python3 -m pip install --no-cache-dir \gradio==4.* rasterio geopandas shapely matplotlib \"git+https://github.com/PatBall1/detectree2.git@master"WORKDIR /appCOPY app.py /app/app.pyCMD ["python3", "app.py"]
Dockerfile+2-5