FROM python:3.10-slim ENV DEBIAN_FRONTEND=noninteractive \ PYTHONUNBUFFERED=1 \ HF_HOME="/tmp/.cache" \ PYTHONPATH="/app" RUN apt-get update && apt-get install -y \ git \ git-lfs \ libgl1 \ && rm -rf /var/lib/apt/lists/* \ && git lfs install WORKDIR /app COPY . /app RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt && \ pip install --no-cache-dir uvicorn numpy pandas RUN chmod -R 777 /app CMD ["python", "-m", "uvicorn", "competitions.app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"]