Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -4
Dockerfile
CHANGED
|
@@ -4,14 +4,16 @@ WORKDIR /code
|
|
| 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
|
| 11 |
RUN pip install --no-cache-dir -r /code/requirements.txt
|
| 12 |
|
| 13 |
-
# 3.
|
| 14 |
-
|
|
|
|
|
|
|
| 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 . .
|