FROM python:3.10-slim WORKDIR /app # Install dependencies before copying the full code to leverage Docker cache COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy HF Space files COPY . /app # Copy model directories from the context (these should be provided appropriately if building locally) COPY india_models/ /app/india_models/ COPY transformer_model/ /app/transformer_model/ EXPOSE 7860 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]