Delete previous model if exists
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
e8f73063d0
commit
3dcb3ce021
1 changed files with 5 additions and 3 deletions
|
@ -4,8 +4,10 @@
|
||||||
|
|
||||||
/ollama/ollama serve &
|
/ollama/ollama serve &
|
||||||
|
|
||||||
echo "FROM /models/$MODEL_NAME" > /tmp/Modelfile
|
if [ -n "$INIT_MODELS" ]; then
|
||||||
|
/ollama/ollama rm model || true
|
||||||
/ollama/ollama create -f /tmp/Modelfile model
|
echo "FROM /models/$MODEL_NAME" > /tmp/Modelfile
|
||||||
|
/ollama/ollama create -f /tmp/Modelfile model
|
||||||
|
fi
|
||||||
|
|
||||||
exec $@
|
exec $@
|
Loading…
Reference in a new issue