File size: 687 Bytes
0aedf16
 
7d40951
 
 
 
 
40629c9
0aedf16
 
 
7d40951
0aedf16
 
 
7d40951
0aedf16
d311e5e
 
 
0aedf16
7d40951
0aedf16
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.10-slim

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

WORKDIR /app

# Python dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# GGUF model (gemma3 architecture, compatible)
RUN mkdir models && \
    curl -L -o models/mistral-7b-v0.1.Q4_K_S.gguf \
    https://huggingface.co/TheBloke/Mistral-7B-v0.1-GGUF/resolve/main/mistral-7b-v0.1.Q4_K_S.gguf && \
    test $(stat -c%s models/mistral-7b-v0.1.Q4_K_S.gguf) -gt 300000000 || (echo "Model download failed or incomplete" && exit 1)

COPY agent.py .

EXPOSE 7860

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