File size: 833 Bytes
e6863eb
 
 
 
 
 
 
 
7694c1b
caf3ec3
00e18a2
caf3ec3
e6863eb
 
 
 
1ab7842
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# ---------------------------------------------------------
# 1️⃣  Use the official OpenWebUI image (latest tag)
# ---------------------------------------------------------
FROM ghcr.io/open-webui/open-webui:latest
# ---------------------------------------------------------
# 2️⃣  Enable the OpenAI‑compatible API (required for /v1/*)
# ---------------------------------------------------------
ENV ENABLE_OPENAI_API=true
ENV DISABLE_EMBEDDINGS=false
USER root
RUN mkdir -p /app/data && chown -R 1000:1000 /app/data && chmod -R 777 /app/data
USER 1000
# ---------------------------------------------------------
# 3️⃣  (Optional) Expose a different host port – HF will map
#    the container’s 8080 → the Space’s public URL automatically.
# ---------------------------------------------------------
EXPOSE 7860