mirror of
https://github.com/open-webui/open-webui
synced 2024-11-22 08:07:55 +00:00
refactor: update run.sh
This commit is contained in:
parent
f87a1c9543
commit
8bb68cfcae
18
run.sh
18
run.sh
@ -1,7 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
docker build -t ollama-webui .
|
||||
docker stop ollama-webui || true
|
||||
docker rm ollama-webui || true
|
||||
docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app/backend/data --name ollama-webui --restart always ollama-webui
|
||||
image_name="ollama-webui"
|
||||
container_name="ollama-webui"
|
||||
|
||||
docker build -t "$image_name" .
|
||||
docker stop "$container_name" &>/dev/null || true
|
||||
docker rm "$container_name" &>/dev/null || true
|
||||
|
||||
docker run -d -p 3000:8080 \
|
||||
--add-host=host.docker.internal:host-gateway \
|
||||
-v "${image_name}:/app/backend/data" \
|
||||
--name "$container_name" \
|
||||
--restart always \
|
||||
"$image_name"
|
||||
|
||||
docker image prune -f
|
Loading…
Reference in New Issue
Block a user