Spaces:
Running
Running
| FROM python:3.10-slim | |
| WORKDIR /app | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| HF_HUB_DISABLE_TELEMETRY=1 \ | |
| CMAKE_BUILD_PARALLEL_LEVEL=1 | |
| 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 -r requirements.txt | |
| RUN python -c "from huggingface_hub import snapshot_download; snapshot_download(repo_id='LiquidAI/LFM2.5-Embedding-350M-GGUF', local_dir='/app/model', allow_patterns=['*Q8_0.gguf'])" | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] |