JamesNR/patchnet
0
1FROM python:3.12-slim2 3# System deps for opencv4RUN apt-get update && apt-get install -y --no-install-recommends \5 libgl1 libglib2.0-0 git \6 && rm -rf /var/lib/apt/lists/*7 8WORKDIR /app9 10# Install Python deps first (cached layer)11COPY requirements.txt .12RUN pip install --no-cache-dir -r requirements.txt13 14# Copy application code + models15COPY app.py pipeline.py ./16COPY static/ static/17COPY models/ models/18 19# HF Spaces expects port 786020EXPOSE 786021 22CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]23 