FROM python:3.9-slim # Create cache directory and set permissions RUN mkdir -p /tmp/huggingface_cache && chmod 777 /tmp/huggingface_cache WORKDIR /app COPY . . RUN pip install --no-cache-dir -r requirements.txt CMD ["python", "app.py"]