Anshul Gupta commited on
Commit ·
e6863eb
1
Parent(s): 4e0e2ad
Add OpenWebUI Dockerfile
Browse files- Dockerfile +15 -0
Dockerfile
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ---------------------------------------------------------
|
| 2 |
+
# 1️⃣ Use the official OpenWebUI image (latest tag)
|
| 3 |
+
# ---------------------------------------------------------
|
| 4 |
+
FROM ghcr.io/open-webui/open-webui:latest
|
| 5 |
+
|
| 6 |
+
# ---------------------------------------------------------
|
| 7 |
+
# 2️⃣ Enable the OpenAI‑compatible API (required for /v1/*)
|
| 8 |
+
# ---------------------------------------------------------
|
| 9 |
+
ENV ENABLE_OPENAI_API=true
|
| 10 |
+
|
| 11 |
+
# ---------------------------------------------------------
|
| 12 |
+
# 3️⃣ (Optional) Expose a different host port – HF will map
|
| 13 |
+
# the container’s 8080 → the Space’s public URL automatically.
|
| 14 |
+
# ---------------------------------------------------------
|
| 15 |
+
EXPOSE 8080
|