Spaces:
Build error
Build error
inclded cmake
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -3,7 +3,12 @@ FROM python:3.12-slim
|
|
| 3 |
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
# Install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
RUN pip install "llama-cpp-python[server]" huggingface_hub
|
| 8 |
|
| 9 |
# --- Model Download ---
|
|
|
|
| 3 |
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# --- FIX: Install build-essential and cmake ---
|
| 7 |
+
# llama-cpp-python needs to be compiled, so we must install
|
| 8 |
+
# C/C++ compilers (build-essential) and cmake first.
|
| 9 |
+
RUN apt-get update && apt-get install -y build-essential cmake
|
| 10 |
+
|
| 11 |
+
# Install all Python dependencies
|
| 12 |
RUN pip install "llama-cpp-python[server]" huggingface_hub
|
| 13 |
|
| 14 |
# --- Model Download ---
|