Create Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Use the base image from the GitHub Container Registry
|
| 2 |
+
FROM ghcr.io/open-webui/open-webui:ollama
|
| 3 |
+
|
| 4 |
+
# Expose the necessary port
|
| 5 |
+
EXPOSE 8080
|
| 6 |
+
|
| 7 |
+
# Set the entrypoint command to run the Open WebUI
|
| 8 |
+
ENTRYPOINT ["docker", "run", "-d", "-p", "3000:8080", "-v", "ollama:/root/.ollama", "-v", "open-webui:/app/backend/data", "--name", "open-webui", "--restart", "always", "ghcr.io/open-webui/open-webui:ollama"]
|