FROM python:3.12-slim-bookworm WORKDIR /workspace RUN python -m pip install --no-cache-dir setuptools==78.1.0 wheel==0.48.0 --extra-index-url https://download.pytorch.org/whl/cpu torch==2.11.0+cpu numpy==2.5.3 packaging==26.3 transformers==5.17.0 accelerate==1.7.0 datasets==4.7.0 pandas jinja2 tokenizers safetensors huggingface-hub filelock tqdm regex requests fsspec pyarrow psutil==7.2.2 pytest==8.4.2 parameterized==0.9.0 COPY . /workspace RUN python -m pip install --no-cache-dir -e . RUN rm -rf /workspace/.git /root/.cache/pip ENV PYTHONDONTWRITEBYTECODE=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1