File size: 562 Bytes
90dee38
 
003c00d
90dee38
2225db6
 
 
 
 
20adea2
90dee38
003c00d
 
 
 
90dee38
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.10-slim

RUN apt-get update && apt-get install -y build-essential git curl && rm -rf /var/lib/apt/lists/*

RUN pip install --no-cache-dir \
    gradio \
    huggingface_hub \
    numpy \
    "llama-cpp-python>=0.2.75" --extra-index-url https://github.io

WORKDIR /app

# --- NEW: Download model during build ---
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')"

COPY . .

CMD ["python", "app.py"]