localollama / entrypoint.sh
Subham9126's picture
Create entrypoint.sh
28d52ca verified
Raw
History Blame Contribute Delete
324 Bytes
#!/bin/bash
# Start Ollama server in the background
ollama serve &
# Wait for the server to be ready
while ! nc -z localhost 7860; do
echo "Waiting for Ollama server to start..."
sleep 1
done
# Pull the model (example: gemma3:1b)
echo "Pulling the model..."
ollama pull qwen3.5:0.8b
# Keep the container running
wait