FROM python:3.10-slim WORKDIR /app # Install system dependencies if any needed (for yfinance/pandas often not needed in slim) COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . # Cloud Run / Render expect 8080 or dynamic port ENV PORT=7860 CMD uvicorn main:app --host 0.0.0.0 --port $PORT