Farm_Easy / Dockerfile
Rjavenger's picture
Upload 4 files
41c9fff verified
raw
history blame contribute delete
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"]