File size: 629 Bytes
fca2cfa
 
8af8343
fca2cfa
0f4e542
e910552
0f4e542
e910552
 
0f4e542
e910552
0f4e542
fca2cfa
8af8343
cc0dad6
fca2cfa
8af8343
fca2cfa
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.10-slim

WORKDIR /app

# Cài đặt các thư viện hệ thống cần thiết cho OpenBLAS
RUN apt-get update && apt-get install -y --no-install-recommends \
    gcc g++ make cmake git libopenblas-dev \
    && rm -rf /var/lib/apt/lists/*

# Cài đặt llama-cpp-python từ wheel ĐÃ BIÊN DỊCH SẴN (không cần build)
RUN pip install --no-cache-dir \
    https://huggingface.co/Luigi/llama-cpp-python-wheels-hf-spaces-free-cpu/resolve/main/llama_cpp_python-0.3.22-cp310-cp310-linux_x86_64.whl

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD ["python", "app.py"]