# Image for running the example experiment on HuggingFace Jobs. # # NOTE: there is intentionally NO ENTRYPOINT/CMD that runs the script. HF Jobs # issues `python ` as the exec command (script_path defaults to # /app/train.py), so an entrypoint here would conflict with how the Job launches. FROM python:3.12-slim ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ PYTHONPATH=/app \ HF_HUB_DISABLE_TELEMETRY=1 WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir --upgrade pip \ && pip install --no-cache-dir -r requirements.txt \ && pip install --no-cache-dir huggingface_hub COPY . .