FROM python:3.12-slim-bookworm WORKDIR /workspace RUN python -m pip install --no-cache-dir torch==2.11.0+cpu tokenizers==0.21.4 huggingface_hub==0.34.4 pytest==7.4.4 setuptools==78.1.0 wheel==0.48.0 parameterized==0.9.0 numpy==2.5.3 packaging==26.3 safetensors==0.8.0 PyYAML==6.0.3 regex==2026.9.10 requests==2.32.3 filelock==3.32.3 tqdm==4.70.1 pillow==12.3.0 sentencepiece==0.2.1 protobuf==5.29.3 psutil==7.2.2 datasets==2.21.0 pyarrow==25.0.1 dill==0.3.8 multiprocess==0.70.16 xxhash==4.0.1 fsspec==2024.6.1 pandas==3.0.5 aiohttp==3.14.3 --extra-index-url https://download.pytorch.org/whl/cpu COPY . /workspace RUN python -m pip install --no-cache-dir --no-deps --no-build-isolation -e . RUN rm -rf /workspace/.git /root/.cache/pip ENV PYTHONDONTWRITEBYTECODE=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1