bahi-bh commited on
Commit
9fbc2ec
·
verified ·
1 Parent(s): 56b6006

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -9
Dockerfile CHANGED
@@ -1,13 +1,11 @@
1
- FROM ubuntu:22.04
2
 
3
- RUN apt update && apt install -y curl
4
 
5
- RUN curl -fsSL https://ollama.com/install.sh | sh
6
 
7
- RUN curl -L https://github.com/open-webui/open-webui/archive/refs/heads/main.tar.gz | tar xz
 
 
8
 
9
- WORKDIR /open-webui-main
10
-
11
- EXPOSE 8080 11434
12
-
13
- CMD ollama serve & npm install && npm run dev
 
1
+ FROM ollama/ollama
2
 
3
+ ENV OLLAMA_HOST=0.0.0.0:11434
4
 
5
+ EXPOSE 11434
6
 
7
+ RUN ollama serve & \
8
+ sleep 15 && \
9
+ ollama pull gemma:2b
10
 
11
+ CMD ["ollama", "serve"]