Spaces:
Running
Running
| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install system dependencies needed for TensorFlow and model loading | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY src ./src | |
| COPY models ./models | |
| EXPOSE 8501 | |
| CMD ["uvicorn", "src.app:app", "--host", "0.0.0.0", "--port", "8501"] | |