Techbitforge commited on
Commit
8f06012
·
verified ·
1 Parent(s): 0f6cc0d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 1. Base Image: Open WebUI
2
+ FROM ghcr.io/open-webui/open-webui:main
3
+
4
+ # 2. Environment Variables
5
+ ENV PORT=7860
6
+ ENV OLLAMA_BASE_URL=http://localhost:11434
7
+ # Save Ollama models to the data folder so they persist (if you use HF Storage)
8
+ ENV OLLAMA_MODELS=/app/backend/data/ollama
9
+
10
+ # 3. Install Ollama (requires root)
11
+ USER root
12
+ RUN curl -fsSL https://ollama.com/install.sh | sh
13
+
14
+ # 4. Single-line startup command
15
+ # Starts Ollama in background -> Waits 10s -> Starts WebUI
16
+ CMD bash -c "ollama serve & sleep 10 && /app/backend/start.sh"