File size: 673 Bytes
8556082
 
 
 
 
 
 
47c99da
53fc74c
8556082
 
47c99da
8556082
 
 
 
 
 
8a7d170
8556082
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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"]