gemma312b_fall / entrypoint.sh
npmaiecosystem's picture
Update entrypoint.sh
f215e56 verified
raw
history blame contribute delete
298 Bytes
#!/bin/bash
set -e
export OLLAMA_HOST="127.0.0.1:11434"
ollama serve &
echo "Waiting for Ollama..."
while ! nc -z localhost 11436 || ! nc -z localhost 11435; do
sleep 1
done
ollama pull llama3.2
echo "Starting FastAPI..."
exec python3 -m uvicorn main:app --host 0.0.0.0 --port ${PORT:-7860}