AIencoder commited on
Commit
ea1e037
·
verified ·
1 Parent(s): 4853067

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -14
Dockerfile CHANGED
@@ -1,24 +1,18 @@
1
  FROM ghcr.io/ggml-org/llama.cpp:full
2
  WORKDIR /app
3
 
4
- # Install Python for downloading
5
- RUN apt-get update && apt-get install -y python3 python3-pip
6
- RUN pip3 install huggingface_hub
 
 
7
 
8
- # --- DOWNLOAD ALL MODELS ---
9
- # 1. Coder (Text)
10
- RUN python3 -c 'from huggingface_hub import hf_hub_download; \
11
- hf_hub_download(repo_id="Qwen/Qwen2.5-Coder-14B-Instruct-GGUF", \
12
- filename="qwen2.5-coder-14b-instruct-q4_k_m.gguf", local_dir="/app")'
13
-
14
- # 2. Vision (Image Support)
15
- RUN python3 -c 'from huggingface_hub import hf_hub_download; \
16
- hf_hub_download(repo_id="Qwen/Qwen2.5-VL-7B-Instruct-GGUF", \
17
- filename="qwen2.5-vl-7b-instruct-q4_k_m.gguf", local_dir="/app")'
18
 
19
  # Copy the start script
20
  COPY start.sh /app/start.sh
21
  RUN chmod +x /app/start.sh
22
 
23
- # Start the script
24
  ENTRYPOINT ["/app/start.sh"]
 
1
  FROM ghcr.io/ggml-org/llama.cpp:full
2
  WORKDIR /app
3
 
4
+ # Install Python and dependencies
5
+ # We clean up apt lists to keep the layer small and prevent errors
6
+ RUN apt-get update && \
7
+ apt-get install -y python3 python3-pip && \
8
+ rm -rf /var/lib/apt/lists/*
9
 
10
+ # Install Hugging Face Hub library
11
+ RUN pip3 install --no-cache-dir huggingface_hub
 
 
 
 
 
 
 
 
12
 
13
  # Copy the start script
14
  COPY start.sh /app/start.sh
15
  RUN chmod +x /app/start.sh
16
 
17
+ # Set the entrypoint
18
  ENTRYPOINT ["/app/start.sh"]