FROM python:3.12-slim 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 jinja2==3.1.6 transformers==5.17.0 tokenizers==0.23.2 safetensors==0.8.0 accelerate==1.15.0 datasets==5.0.1 huggingface-hub==1.31.0 psutil==7.2.2 pytest==8.4.2 parameterized==0.9.0 COPY . /workspace RUN python -m pip install --no-cache-dir --no-build-isolation -e . RUN rm -rf /workspace/.git /root/.cache/pip ENV PYTHONDONTWRITEBYTECODE=1 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1