Beam091 commited on
Commit
caf3ec3
·
verified ·
1 Parent(s): 7694c1b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -6,8 +6,10 @@ FROM ghcr.io/open-webui/open-webui:latest
6
  # 2️⃣ Enable the OpenAI‑compatible API (required for /v1/*)
7
  # ---------------------------------------------------------
8
  ENV ENABLE_OPENAI_API=true
9
-
10
  ENV DISABLE_EMBEDDINGS=false
 
 
 
11
  # ---------------------------------------------------------
12
  # 3️⃣ (Optional) Expose a different host port – HF will map
13
  # the container’s 8080 → the Space’s public URL automatically.
 
6
  # 2️⃣ Enable the OpenAI‑compatible API (required for /v1/*)
7
  # ---------------------------------------------------------
8
  ENV ENABLE_OPENAI_API=true
 
9
  ENV DISABLE_EMBEDDINGS=false
10
+ USER root
11
+ RUN mkdir -p /app/data && chown -R 1000:1000 /app/data
12
+ USER 1000
13
  # ---------------------------------------------------------
14
  # 3️⃣ (Optional) Expose a different host port – HF will map
15
  # the container’s 8080 → the Space’s public URL automatically.