XY26 commited on
Commit
aa45067
·
verified ·
1 Parent(s): f688c92

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -4
Dockerfile CHANGED
@@ -4,14 +4,16 @@ WORKDIR /code
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
- # 1. Upgrade pip to ensure it can handle modern wheels
8
  RUN pip install --no-cache-dir --upgrade pip
9
 
10
- # 2. Install Gradio and generic tools
11
  RUN pip install --no-cache-dir -r /code/requirements.txt
12
 
13
- # 3. MAGIC FIX: Install llama-cpp-python from the official CPU wheel repository
14
- RUN pip install llama-cpp-python \
 
 
15
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
16
 
17
  COPY . .
 
4
 
5
  COPY ./requirements.txt /code/requirements.txt
6
 
7
+ # 1. Upgrade pip
8
  RUN pip install --no-cache-dir --upgrade pip
9
 
10
+ # 2. Install generic dependencies
11
  RUN pip install --no-cache-dir -r /code/requirements.txt
12
 
13
+ # 3. THE FIX: Pin to version 0.2.90
14
+ # We specify "==0.2.90" to force it to use the existing pre-built wheel.
15
+ # This avoids the "Building wheel..." step that causes the Timeout.
16
+ RUN pip install --no-cache-dir llama-cpp-python==0.2.90 \
17
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
18
 
19
  COPY . .