custom_embedding_server / entrypoint.sh
subhrajit-mohanty's picture
Create entrypoint.sh
51b56a2 verified
raw
history blame contribute delete
334 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
echo "Pulling the model..."
ollama pull nomic-embed-text
ollama pull all-minilm
# Keep the container running
wait