FROM python:3.9-slim WORKDIR /app RUN apt-get update && apt-get install -y \ build-essential \ git \ && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY . . ENV HF_HUB_ENABLE_HF_TRANSFER=1 ENV PORT=7860 RUN mkdir -p /data EXPOSE 7860 CMD ["gunicorn", "-c", "gunicorn_config.py", "server:app"]