mindcraft-vllm / entrypoint.sh
sanvrypt's picture
Update entrypoint.sh
2d19a28 verified
raw
history blame contribute delete
292 Bytes
#!/bin/bash
set -e
echo "Starting Ollama..."
ollama serve &
OLLAMA_PID=$!
echo "Waiting for Ollama to be ready..."
sleep 10
echo "Pulling model..."
ollama pull sweaterdog/andy-4:latest
echo "Starting Flask..."
python3 /app/app.py &
FLASK_PID=$!
echo "Ready!"
wait $OLLAMA_PID $FLASK_PID