Initial commit: Miku Discord Bot
This commit is contained in:
17
entrypoint.sh
Executable file
17
entrypoint.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Start the server in the background
|
||||
ollama serve &
|
||||
|
||||
# Wait until the server is reachable
|
||||
until curl -s http://localhost:11434 | grep -q 'Ollama is running'; do
|
||||
echo 'Waiting for Ollama to start...'
|
||||
sleep 2
|
||||
done
|
||||
|
||||
# Pull the model
|
||||
ollama pull llama3.1
|
||||
ollama pull moondream
|
||||
|
||||
# Wait for background jobs
|
||||
wait
|
||||
Reference in New Issue
Block a user