# Dockerfile FROM python:3.10-slim WORKDIR /app COPY . /app RUN pip install --no-cache-dir --upgrade pip # Install dependencies from requirements.txt if present, else install fallback packages RUN if [ -f requirements.txt ]; then pip install --no-cache-dir -r requirements.txt; else pip install --no-cache-dir gradio httpx; fi ENV PORT=7860 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers"]