Update Dockerfile
Browse files- Dockerfile +7 -3
Dockerfile
CHANGED
|
@@ -1,11 +1,15 @@
|
|
| 1 |
FROM huggingface/zero-gpu-gradio:latest
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 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
|