FROM python:3.10-slim WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy source code COPY app.py . # Set up Hugging Face cache RUN mkdir -p /app/cache ENV HF_HOME=/app/cache \ PYTHONUNBUFFERED=1 EXPOSE 7860 CMD ["python", "app.py"]