File size: 627 Bytes
41c9fff |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
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"] |