Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # System deps (minimal, no extra junk) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install dependencies including httpx for API calls | |
| RUN pip install --no-cache-dir \ | |
| fastapi \ | |
| uvicorn \ | |
| llama-cpp-python==0.2.78 \ | |
| httpx | |
| # Copy app and model | |
| COPY app.py /app/app.py | |
| RUN mkdir -p /models | |
| COPY model.gguf /models/model.gguf | |
| # Run app | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |