Spaces:
Running
Running
File size: 493 Bytes
0307255 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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"] |