Download Dockerfile from LeafNet75/Farm_Easy: direct link, hf CLI and curl.
- Browser
- Download file 627 Bytes
-
https://huggingface.co/spaces/LeafNet75/Farm_Easy/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/LeafNet75/Farm_Easy/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/LeafNet75/Farm_Easy/resolve/main/Dockerfile
627 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| wget \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Download Models | |
| RUN mkdir -p weights && \ | |
| wget -O weights/yolo12_cls.pt https://huggingface.co/Subh775/Yolo12-cls.latest_ep15.bsl/resolve/main/weights/best.pt && \ | |
| mkdir -p /tmp && \ | |
| wget -O /tmp/checkpoint_best_total.pth https://huggingface.co/Subh775/Seg-Basil-rfdetr/resolve/main/checkpoint_best_total.pth | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |