mirror of
https://github.com/open-webui/open-webui
synced 2024-11-26 22:09:51 +00:00
20 lines
475 B
Bash
20 lines
475 B
Bash
#!/bin/bash
|
|
|
|
image_name="ollama-webui"
|
|
container_name="ollama-webui"
|
|
host_port=3000
|
|
container_port=8080
|
|
|
|
docker build -t "$image_name" .
|
|
docker stop "$container_name" &>/dev/null || true
|
|
docker rm "$container_name" &>/dev/null || true
|
|
|
|
docker run -d -p "$host_port":"$container_port" \
|
|
--add-host=host.docker.internal:host-gateway \
|
|
-v "${image_name}:/app/backend/data" \
|
|
--name "$container_name" \
|
|
--restart always \
|
|
"$image_name"
|
|
|
|
docker image prune -f
|