Spaces:
Build error
Build error
Commit
·
b7eafbb
1
Parent(s):
884001b
commiting once agin
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -27,10 +27,10 @@ RUN mkdir -p /app/models && chmod 777 /app/models
|
|
| 27 |
COPY requirements.txt .
|
| 28 |
|
| 29 |
# Install dependencies
|
| 30 |
-
# We
|
| 31 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 32 |
pip install --no-cache-dir -r requirements.txt && \
|
| 33 |
-
pip install
|
| 34 |
|
| 35 |
# Copy the rest of the application
|
| 36 |
COPY . .
|
|
|
|
| 27 |
COPY requirements.txt .
|
| 28 |
|
| 29 |
# Install dependencies
|
| 30 |
+
# We forcefully install the specific Linux wheel for Python 3.11 to prevent compilation
|
| 31 |
RUN pip install --no-cache-dir --upgrade pip && \
|
| 32 |
pip install --no-cache-dir -r requirements.txt && \
|
| 33 |
+
pip install https://github.com/abetlen/llama-cpp-python/releases/download/v0.3.2/llama_cpp_python-0.3.2-cp311-cp311-linux_x86_64.whl
|
| 34 |
|
| 35 |
# Copy the rest of the application
|
| 36 |
COPY . .
|