FROM python:3.11-slim WORKDIR /app RUN pip install uv --no-cache-dir COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the entire flat structure COPY . . RUN pip install --no-cache-dir -e . EXPOSE 7860 HEALTHCHECK --interval=30s --timeout=10s --start-period=30s \ CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" || exit 1 CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"]