kirikir13 commited on
Commit
674b919
·
verified ·
1 Parent(s): 8f43e53

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -3
Dockerfile CHANGED
@@ -1,11 +1,15 @@
1
  FROM huggingface/zero-gpu-gradio:latest
2
 
3
- COPY requirements.txt /tmp/requirements.txt
4
- RUN pip install --no-cache-dir -r /tmp/requirements.txt
5
-
6
  RUN pip install --no-cache-dir llama-cpp-python \
7
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
8
 
 
 
 
 
 
9
  RUN pip install --no-cache-dir python-docx pdfplumber chardet
10
 
11
  COPY app.py /home/user/app/app.py
 
1
  FROM huggingface/zero-gpu-gradio:latest
2
 
3
+ # --- STEP 1: llama-cpp-python prebuilt CUDA wheel FIRST ---
4
+ # This MUST happen before any other pip install or it compiles from source
 
5
  RUN pip install --no-cache-dir llama-cpp-python \
6
  --extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cu124
7
 
8
+ # --- STEP 2: everything else ---
9
+ COPY requirements.txt /tmp/requirements.txt
10
+ RUN pip install --no-cache-dir -r /tmp/requirements.txt
11
+
12
+ # --- STEP 3: file parsers ---
13
  RUN pip install --no-cache-dir python-docx pdfplumber chardet
14
 
15
  COPY app.py /home/user/app/app.py