Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +14 -7
Dockerfile
CHANGED
|
@@ -7,13 +7,20 @@ ENV HOME=/home/user \
|
|
| 7 |
|
| 8 |
WORKDIR $HOME/app
|
| 9 |
|
| 10 |
-
|
| 11 |
-
RUN
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
COPY --chown=user . $HOME/app
|
| 19 |
|
|
|
|
| 7 |
|
| 8 |
WORKDIR $HOME/app
|
| 9 |
|
| 10 |
+
USER root
|
| 11 |
+
RUN apt-get update && apt-get install -y \
|
| 12 |
+
gcc g++ make cmake git wget \
|
| 13 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 14 |
+
USER user
|
| 15 |
+
|
| 16 |
+
# Install llama-cpp-python and other essentials
|
| 17 |
+
RUN pip install --no-cache-dir llama-cpp-python huggingface_hub gradio
|
| 18 |
+
|
| 19 |
+
# Download the specific GGUF file from the repo in your screenshot
|
| 20 |
+
# Using the Q4_K_M version for the best balance of speed and logic
|
| 21 |
+
RUN huggingface-cli download tensorblock/llama3.2-1b-Uncensored-GGUF \
|
| 22 |
+
llama3.2-1b-Uncensored-Q4_K_M.gguf \
|
| 23 |
+
--local-dir . --local-dir-use-symlinks False
|
| 24 |
|
| 25 |
COPY --chown=user . $HOME/app
|
| 26 |
|