forked from open-webui/open-webui
refactor: update run.sh
This commit is contained in:
parent
f87a1c9543
commit
8bb68cfcae
1 changed files with 15 additions and 5 deletions
20
run.sh
20
run.sh
|
@ -1,7 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
docker build -t ollama-webui .
|
image_name="ollama-webui"
|
||||||
docker stop ollama-webui || true
|
container_name="ollama-webui"
|
||||||
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
|
docker build -t "$image_name" .
|
||||||
docker image prune -f
|
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 a new issue