Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -9
Dockerfile
CHANGED
|
@@ -1,15 +1,11 @@
|
|
| 1 |
-
# Use a
|
| 2 |
-
FROM python:
|
| 3 |
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
-
#
|
| 7 |
-
#
|
| 8 |
-
|
| 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 ---
|
| 15 |
# Copy the download script into the container
|
|
|
|
| 1 |
+
# Use a pre-built image that already has llama-cpp-python compiled
|
| 2 |
+
FROM ghcr.io/abetlen/llama-cpp-python:latest
|
| 3 |
|
| 4 |
WORKDIR /app
|
| 5 |
|
| 6 |
+
# The base image already has llama-cpp-python,
|
| 7 |
+
# so we only need to install huggingface_hub
|
| 8 |
+
RUN pip install huggingface_hub
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# --- Model Download ---
|
| 11 |
# Copy the download script into the container
|