Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| # 1. Set workdir | |
| WORKDIR /app | |
| # 2. Install system deps (FAISS cần) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 3. Copy requirements | |
| COPY requirements.txt . | |
| # 4. Install python deps | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 5. Copy source code | |
| COPY . . | |
| # 6. Expose port (HF dùng 7860) | |
| EXPOSE 7860 | |
| # 7. Run app | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |