File size: 584 Bytes
6f24d42
 
 
 
 
 
 
 
 
 
 
 
e68a49f
 
 
6f24d42
 
6c98ee6
 
 
 
 
 
df2d4da
6c98ee6
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
FROM ubuntu:22.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install -y \
    curl \
    zstd \
    ca-certificates \
    && rm -rf /var/lib/apt/lists/*

RUN curl -fsSL https://ollama.com/install.sh | sh

# Bind Ollama to HF port
ENV OLLAMA_HOST=0.0.0.0:7860

EXPOSE 7860

CMD bash -c "\
ollama serve & \
sleep 5 && \
ollama pull hf.co/unsloth/DeepSeek-R1-Distill-Qwen-1.5B-GGUF:Q4_K_M &&\
ollama pull hf.co/unsloth/Qwen3-4B-GGUF:Q4_K_M &&\
ollama pull hf.co/unsloth/gemma-2-it-GGUF:Q4_K_M &&\
ollama pull hf.co/Qwen/Qwen2.5-1.5B-Instruct-GGUF:Q4_K_M &&\
wait"