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 &
|
||||
|
||||
if [ -n "$INIT_MODELS" ]; then
|
||||
/ollama/ollama rm model || true
|
||||
echo "FROM /models/$MODEL_NAME" > /tmp/Modelfile
|
||||
|
||||
/ollama/ollama create -f /tmp/Modelfile model
|
||||
fi
|
||||
|
||||
exec $@
|
Loading…
Reference in a new issue