FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir --upgrade huggingface-hub>=0.24.0 && \ pip install --no-cache-dir -r requirements.txt ENV HF_HOME=/tmp/huggingface \ HF_HUB_CACHE=/tmp/huggingface # Copy the rest of the app code COPY . /app # Expose port EXPOSE 7860 CMD ["python", "app.py", "--server_name", "0.0.0.0", "--server_port", "7860"]