Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y build-essential && rm -rf /var/lib/apt/lists/* | |
| # ✅ server/requirements.txt must exist — this is what was missing before | |
| COPY server/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| ENV PYTHONPATH=/app | |
| # Launch both the API server and Gradio UI on the same port via Gradio | |
| CMD ["python", "ui/app.py"] | |