Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy source code | |
| COPY src ./src | |
| COPY configs ./configs | |
| COPY openenv.yaml ./openenv.yaml | |
| COPY inference.py ./inference.py | |
| COPY scripts ./scripts | |
| COPY app.py ./app.py | |
| # Create data directory (fallback synthetic data used if empty) | |
| RUN mkdir -p data | |
| # HuggingFace Spaces expects port 7860 | |
| EXPOSE 7860 | |
| # app.py starts FastAPI internally on 8000, then launches Gradio on 7860 | |
| CMD ["python", "app.py"] | |