SALEETAI commited on
Commit
003c00d
·
verified ·
1 Parent(s): 4f699d8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -7
Dockerfile CHANGED
@@ -1,13 +1,7 @@
1
  FROM python:3.10-slim
2
 
3
- # Install minimal system tools
4
- RUN apt-get update && apt-get install -y \
5
- build-essential \
6
- git \
7
- && rm -rf /var/lib/apt/lists/*
8
 
9
- # Fix: Install pre-built wheel for llama-cpp-python
10
- # This avoids the "Building wheel" hang/error
11
  RUN pip install --no-cache-dir \
12
  gradio \
13
  huggingface_hub \
@@ -15,6 +9,10 @@ RUN pip install --no-cache-dir \
15
  "llama-cpp-python>=0.2.75" --extra-index-url https://github.io
16
 
17
  WORKDIR /app
 
 
 
 
18
  COPY . .
19
 
20
  CMD ["python", "app.py"]
 
1
  FROM python:3.10-slim
2
 
3
+ RUN apt-get update && apt-get install -y build-essential git curl && rm -rf /var/lib/apt/lists/*
 
 
 
 
4
 
 
 
5
  RUN pip install --no-cache-dir \
6
  gradio \
7
  huggingface_hub \
 
9
  "llama-cpp-python>=0.2.75" --extra-index-url https://github.io
10
 
11
  WORKDIR /app
12
+
13
+ # --- NEW: Download model during build ---
14
+ RUN python3 -c "from huggingface_hub import hf_hub_download; hf_hub_download(repo_id='SALEETAI/coding-agent-qwen-sft-v2-GGUF', filename='coding-agent-qwen-sft-v2-GGUF.q4_k_m.gguf', local_dir='/app')"
15
+
16
  COPY . .
17
 
18
  CMD ["python", "app.py"]