Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
open-webui
Commits
8bb68cfc
"src/vscode:/vscode.git/clone" did not exist on "84b36bc18dd605d2e5f6393f6ede413eaa7214ed"
Unverified
Commit
8bb68cfc
authored
Jan 09, 2024
by
Tanvir
Browse files
refactor: update run.sh
parent
f87a1c95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
+15
-5
run.sh
run.sh
+15
-5
No files found.
run.sh
View file @
8bb68cfc
#!/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
\ No newline at end of file
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment