Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +18 -0
Dockerfile
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"]
|