FROM python:3.10-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . # :white_check_mark: Create cache directory manually and set permissions RUN mkdir -p /app/cache && chmod -R 777 /app/cache # :white_check_mark: New preferred env var (TRANSFORMERS_CACHE is deprecated) ENV HF_HOME=/app/cache EXPOSE 7860 CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]