Spaces:
Running
Running
install in two steps
Browse files- Dockerfile +4 -1
- requirements.txt +1 -1
Dockerfile
CHANGED
|
@@ -23,7 +23,10 @@ COPY --chown=user requirements.txt .
|
|
| 23 |
|
| 24 |
# 6. Upgrade pip & install Python dependencies
|
| 25 |
RUN python -m pip install --upgrade pip \
|
| 26 |
-
&& pip install --no-cache-dir -r requirements.txt
|
|
|
|
|
|
|
|
|
|
| 27 |
|
| 28 |
# 7. Copy the rest of the app code
|
| 29 |
COPY --chown=user . .
|
|
|
|
| 23 |
|
| 24 |
# 6. Upgrade pip & install Python dependencies
|
| 25 |
RUN python -m pip install --upgrade pip \
|
| 26 |
+
&& pip install --no-cache-dir -r requirements.txt \
|
| 27 |
+
&& pip install --no-cache-dir \
|
| 28 |
+
llama-cpp-python \
|
| 29 |
+
--extra-index-url https://abetlen.github.io/llama-cpp-python/whl/cpu
|
| 30 |
|
| 31 |
# 7. Copy the rest of the app code
|
| 32 |
COPY --chown=user . .
|
requirements.txt
CHANGED
|
@@ -20,7 +20,7 @@ pandoc
|
|
| 20 |
pymupdf4llm
|
| 21 |
|
| 22 |
# V2 — local LLM inference + model download
|
| 23 |
-
|
| 24 |
huggingface_hub
|
| 25 |
|
| 26 |
# AI / ML Models
|
|
|
|
| 20 |
pymupdf4llm
|
| 21 |
|
| 22 |
# V2 — local LLM inference + model download
|
| 23 |
+
# Installed separately in Dockerfile via pre-built CPU wheel (see Dockerfile step 6)
|
| 24 |
huggingface_hub
|
| 25 |
|
| 26 |
# AI / ML Models
|