FROM python:3.12-slim-bookworm WORKDIR /workspace RUN python -m pip install --no-cache-dir accelerate==1.15.0 anyio==4.15.1 certifi==2026.7.22 click==8.5.0 datasets==3.6.0 diffusers==0.40.0 dill==0.3.8 filelock==3.32.3 fsspec==2025.3.0 h11==0.16.0 hf-xet==1.6.0 httpcore==1.0.9 httpx==0.28.1 huggingface_hub==1.31.0 idna==3.19 iniconfig==2.3.0 Jinja2==3.1.6 markdown-it-py==4.2.0 MarkupSafe==3.0.3 mdurl==0.1.2 mpmath==1.3.0 multiprocess==0.70.16 networkx==3.6.1 numpy==2.5.3 packaging==26.3 pandas==2.2.3 parameterized==0.9.0 pillow==11.2.1 pluggy==1.6.0 psutil==7.2.2 pyarrow==19.0.1 Pygments==2.21.0 pytest==8.4.2 pytest-cov==7.1.0 python-dateutil==2.9.0.post0 pytz==2025.2 PyYAML==6.0.3 regex==2026.9.10 requests==2.32.4 rich==15.0.0 safetensors==0.8.0 setuptools==78.1.0 shellingham==1.5.4 six==1.17.0 sympy==1.14.0 tokenizers==0.23.2 torch==2.11.0+cpu tqdm==4.70.1 transformers==5.17.0 typer==0.27.2 typing_extensions==4.16.0 tzdata==2025.2 wheel==0.48.0 xxhash==3.5.0 --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