OpenWebUI / Dockerfile
Beam091's picture
Update Dockerfile
34c044a verified
raw
history blame contribute delete
833 Bytes
# ---------------------------------------------------------
# 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