Pulastya0/AI-Agent-Routing-Department
0
1# Base image2FROM python:3.11-slim3 4# Set working directory5WORKDIR /app6 7# Copy requirements8COPY requirements.txt .9 10# Install dependencies11RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt12 13# Create writable cache directory for Hugging Face14 15ENV HF_HOME="/tmp/huggingface"16ENV HF_DATASETS_CACHE="/tmp/huggingface"17ENV TRANSFORMERS_CACHE="/tmp/huggingface"18 19# Copy app.py20COPY . .21 22# Expose default HF Space port23EXPOSE 786024 25# Use python -m uvicorn to avoid PATH issues26CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]27 