FROM python:3.9-slim RUN apt-get update && apt-get install -y curl \ && curl -sSL https://ollama.com/install.sh | bash \ && ollama pull gemma3:4b WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . EXPOSE 7860 CMD ollama run gemma3:4b --api --port 11434 & \ uvicorn app:app --host 0.0.0.0 --port 7860