boning123's picture
Update Dockerfile
d311e5e verified
raw
history blame contribute delete
687 Bytes
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"]