Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| # Prevent buffering (important for logs) | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements first (for caching) | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy full project | |
| COPY . . | |
| # Fix Python imports | |
| ENV PYTHONPATH=/app | |
| # Run inference | |
| CMD ["python", "inference.py"] |