FROM python:3.10-slim RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* WORKDIR /app RUN git clone https://github.com/shiyu-coder/Kronos.git /app/Kronos COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY app.py . ENV PYTHONPATH=/app/Kronos ENV HF_HOME=/tmp/hf ENV TRANSFORMERS_CACHE=/tmp/hf EXPOSE 7860 CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--workers", "1", "--threads", "2", "--timeout", "600", "app:app"]