ffreemt commited on
Commit
04ff458
·
1 Parent(s): 786768d

pip vs pipx

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -2,15 +2,15 @@ FROM ghcr.io/ggml-org/llama.cpp:full
2
 
3
  WORKDIR /app
4
 
5
- RUN apt update && apt install -y python3 python3-pip python3-venv
6
  #UN python3 -m venv /opt/venv
7
  #NV PATH="/opt/venv/bin:$PATH"
8
 
9
- RUN pip install huggingface_hub --break-system-packages
10
- # RUN pipx install huggingface_hub
11
 
12
  # RUN python3 -c 'from huggingface_hub import hf_hub_download; repo="prism-ml/Bonsai-8B-gguf"; hf_hub_download(repo_id=repo, filename="Bonsai-8B.gguf", local_dir="/app")'
13
- RUN hf download prism-ml/Bonsai-8B-gguf bonsai-8b --local-dir /app --local-dir-use-symlinks False
14
 
15
  CMD ["--server", \
16
  "-m", "/app/bonsai-8b", \
 
2
 
3
  WORKDIR /app
4
 
5
+ RUN apt update && apt install -y python3 python3-pip python3-venv pipx
6
  #UN python3 -m venv /opt/venv
7
  #NV PATH="/opt/venv/bin:$PATH"
8
 
9
+ # RUN pip install huggingface_hub --break-system-packages
10
+ RUN pipx install huggingface_hub
11
 
12
  # RUN python3 -c 'from huggingface_hub import hf_hub_download; repo="prism-ml/Bonsai-8B-gguf"; hf_hub_download(repo_id=repo, filename="Bonsai-8B.gguf", local_dir="/app")'
13
+ RUN hf download prism-ml/Bonsai-8B-gguf bonsai-8b --local-dir /app --use-symlinks False
14
 
15
  CMD ["--server", \
16
  "-m", "/app/bonsai-8b", \