FROM python:3.10 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # ✅ Create a writable Hugging Face cache directory RUN mkdir -p /app/hf_cache && chmod -R 777 /app/hf_cache COPY app.py . CMD ["python", "app.py"]