Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +6 -8
Dockerfile
CHANGED
@@ -1,18 +1,16 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
# Install dependencies
|
4 |
-
RUN apt update && apt install -y curl
|
5 |
|
6 |
# Install Ollama
|
7 |
RUN curl -fsSL https://ollama.com/install.sh | bash
|
8 |
|
9 |
-
# Install OpenWebUI
|
10 |
-
|
11 |
-
RUN git clone https://github.com/open-webui/open-webui.git .
|
12 |
-
RUN ./scripts/setup.sh
|
13 |
|
14 |
-
# Expose
|
15 |
EXPOSE 3000
|
16 |
|
17 |
# Start Ollama and OpenWebUI
|
18 |
-
CMD ["bash", "-c", "ollama serve &
|
|
|
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"]
|