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 lines2829303131323334343536373839404139404127 unmodified lines https://dl.fbaipublicfiles.com/detectron2/wheels/cu111/torch1.10/index.html \ detectron2==0.6
# Geo + UI + detectree2# 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" "git+https://github.com/PatBall1/detectree2.git@master"
WORKDIR /appCOPY app.py /app/app.py
# Copy pre-uploaded model(s)COPY weights /weights
CMD ["python3", "app.py"]
Dockerfile+2-5