MoiMoi-01 commited on
Commit
ecb9b6d
ยท
verified ยท
1 Parent(s): cef2075

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -1,18 +1,16 @@
1
- FROM ubuntu:latest
2
 
3
  # Install dependencies
4
- RUN apt update && apt install -y curl git unzip && rm -rf /var/lib/apt/lists/*
5
 
6
  # Install Ollama
7
  RUN curl -fsSL https://ollama.com/install.sh | bash
8
 
9
- # Install OpenWebUI
10
- WORKDIR /app
11
- RUN git clone https://github.com/open-webui/open-webui.git .
12
- RUN ./scripts/setup.sh
13
 
14
- # Expose ports
15
  EXPOSE 3000
16
 
17
  # Start Ollama and OpenWebUI
18
- CMD ["bash", "-c", "ollama serve & npm start"]
 
1
+ FROM python:3.10-slim
2
 
3
  # Install dependencies
4
+ RUN apt update && apt install -y curl && rm -rf /var/lib/apt/lists/*
5
 
6
  # Install Ollama
7
  RUN curl -fsSL https://ollama.com/install.sh | bash
8
 
9
+ # Install OpenWebUI using pip
10
+ RUN pip install openwebui
 
 
11
 
12
+ # Expose the web UI port
13
  EXPOSE 3000
14
 
15
  # Start Ollama and OpenWebUI
16
+ CMD ["bash", "-c", "ollama serve & openwebui"]