HuuDatLego commited on
Commit
ecd1483
·
verified ·
1 Parent(s): 9c89765

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -6,6 +6,7 @@ RUN apt-get update && apt-get install -y \
6
  redis-server \
7
  curl \
8
  build-essential \
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  # Cài đặt uv
@@ -16,10 +17,11 @@ WORKDIR /app
16
  # Copy các file cấu hình thư viện
17
  COPY pyproject.toml uv.lock ./
18
 
19
- # CÀI ĐẶT LLAMA-CPP-PYTHON BẢN ĐÃ BUILD SẴN (PRE-BUILT)
20
- # Link này trỏ thẳng tới bản wheel dành cho Linux CPU, giúp bỏ qua bước biên dịch 30 phút
21
  RUN uv pip install --system --no-cache-dir \
22
- https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.1/llama_cpp_python-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
 
23
 
24
  # Cài đặt các thư viện còn lại
25
  RUN uv sync --system --no-dev
 
6
  redis-server \
7
  curl \
8
  build-essential \
9
+ python3-dev \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
  # Cài đặt uv
 
17
  # Copy các file cấu hình thư viện
18
  COPY pyproject.toml uv.lock ./
19
 
20
+ # CÀI ĐẶT LLAMA-CPP-PYTHON TỪ KHO WHEEL (BẢN ĐÃ BIÊN DỊCH)
21
+ # Kho này giúp bỏ qua bước biên dịch 30 phút trên Linux
22
  RUN uv pip install --system --no-cache-dir \
23
+ llama-cpp-python==0.3.16 \
24
+ --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
25
 
26
  # Cài đặt các thư viện còn lại
27
  RUN uv sync --system --no-dev