FROM python:3.11-slim # Install system dependencies (git is needed for fetching models, gcc for some wheel builds) RUN apt-get update && apt-get install -y git build-essential && rm -rf /var/lib/apt/lists/* COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the training script COPY task.py . # Run the training script! CMD ["python", "task.py"]