arc1-example-image / Dockerfile
aidevices's picture
Sync example-experiment for HF Jobs Docker image
0abf0ab verified
Raw History Blame Contribute Delete
635 Bytes
# 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 . .