Spaces:
Sleeping
Sleeping
| FROM pytorch/pytorch:latest | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| # System deps for OpenCV / OCR | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --upgrade pip | |
| # Install Python dependencies | |
| COPY requirements.txt . | |
| RUN pip install --prefer-binary -r requirements.txt | |
| # Copy backend + frontend | |
| COPY backend ./backend | |
| COPY frontend ./frontend | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "backend.main.app:app", "--host", "0.0.0.0", "--port", "7860"] |