File size: 635 Bytes
0abf0ab | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | # Image for running the example experiment on HuggingFace Jobs.
#
# NOTE: there is intentionally NO ENTRYPOINT/CMD that runs the script. HF Jobs
# issues `python <script_path>` 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 . .
|