File size: 395 Bytes
0c43e86
26f3ec9
d6b559f
aca426c
 
7c204ea
aca426c
 
d6b559f
 
aca426c
9603bd2
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM ollama/ollama:latest

# HF Spaces (free CPU) expects port 7860
ENV OLLAMA_HOST=0.0.0.0:7860
ENV OLLAMA_MAX_LOADED_MODELS=1

EXPOSE 7860

# Override default entrypoint so we can run normal commands
ENTRYPOINT []

# Start Ollama server + pull qwen3.5 (quantized for CPU) + keep alive
CMD ollama serve & sleep 15 && ollama pull qwen3.5 && echo "✅ deepseek-r1:8b ready!" && tail -f /dev/null