zapashwin commited on
Commit
2aa6b79
·
verified ·
1 Parent(s): 11e94b4

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -2,10 +2,10 @@ FROM ghcr.io/ggml-org/llama.cpp:server
2
 
3
  USER root
4
 
5
- # Fast single-layer model fetch + wipe old cache/data to start fresh
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  curl \
8
- && rm -rf /models/* \
9
  && mkdir -p /models \
10
  && curl -L https://huggingface.co/unsloth/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q4_K_M.gguf -o /models/model.gguf \
11
  && chown -R 1000:1000 /models \
 
2
 
3
  USER root
4
 
5
+ # Completely wipe and reinstall fresh, bypassing cached layers
6
  RUN apt-get update && apt-get install -y --no-install-recommends \
7
  curl \
8
+ && rm -rf /models /root/.cache /tmp/* \
9
  && mkdir -p /models \
10
  && curl -L https://huggingface.co/unsloth/Llama-3.2-1B-Instruct-GGUF/resolve/main/Llama-3.2-1B-Instruct-Q4_K_M.gguf -o /models/model.gguf \
11
  && chown -R 1000:1000 /models \