abc1181 commited on
Commit
89f03d6
Β·
verified Β·
1 Parent(s): d7b4b6a

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -6
Dockerfile CHANGED
@@ -1,20 +1,21 @@
1
  FROM ghcr.io/open-webui/open-webui:main
2
 
3
- # ── Port HF requires ──────────────────────────────────────────────────────────
4
  ENV PORT=7860
 
5
 
6
- # ── Disable auth for personal use (set to true to enable login) ───────────────
7
  ENV WEBUI_AUTH=False
8
 
9
- # ── Point directly at your ollama-tools space ─────────────────────────────────
10
  ENV OPENAI_API_BASE_URL=https://abc1181-ollama-tools.hf.space/v1
11
  ENV OPENAI_API_KEY=your-api-key-here
12
 
13
- # ── Disable Ollama since you're using your own backend ────────────────────────
14
  ENV OLLAMA_BASE_URL=""
15
  ENV ENABLE_OLLAMA_API=False
16
 
17
- # ── Optional: set default model ───────────────────────────────────────────────
18
  ENV DEFAULT_MODELS="Obsidian Fast ⚑"
19
 
20
  # ── Data directory ────────────────────────────────────────────────────────────
@@ -22,4 +23,5 @@ ENV DATA_DIR=/app/backend/data
22
 
23
  EXPOSE 7860
24
 
25
- CMD ["bash", "-c", "cd /app/backend && uvicorn main:app --host 0.0.0.0 --port 7860"]
 
 
1
  FROM ghcr.io/open-webui/open-webui:main
2
 
3
+ # ── HF requires port 7860 ─────────────────────────────────────────────────────
4
  ENV PORT=7860
5
+ ENV HOST=0.0.0.0
6
 
7
+ # ── Disable auth for personal use ────────────────────────────────────────────
8
  ENV WEBUI_AUTH=False
9
 
10
+ # ── Your ollama-tools backend ─────────────────────────────────────────────────
11
  ENV OPENAI_API_BASE_URL=https://abc1181-ollama-tools.hf.space/v1
12
  ENV OPENAI_API_KEY=your-api-key-here
13
 
14
+ # ── Disable built-in Ollama ───────────────────────────────────────────────────
15
  ENV OLLAMA_BASE_URL=""
16
  ENV ENABLE_OLLAMA_API=False
17
 
18
+ # ── Default model ─────────────────────────────────────────────────────────────
19
  ENV DEFAULT_MODELS="Obsidian Fast ⚑"
20
 
21
  # ── Data directory ────────────────────────────────────────────────────────────
 
23
 
24
  EXPOSE 7860
25
 
26
+ # βœ… Fixed β€” use the image's own startup script, not uvicorn directly
27
+ CMD ["bash", "/app/backend/start.sh"]