FROM python:3.12-slim WORKDIR /workspace RUN python -m pip install --no-cache-dir --extra-index-url https://download.pytorch.org/whl/cpu torch==2.11.0+cpu torchvision==0.26.0+cpu numpy==2.5.3 packaging==26.3 parameterized==0.9.0 Pillow==10.4.0 pytest==8.4.2 pyyaml==6.0.2 regex==2024.11.6 requests==2.32.3 safetensors==0.8.0 setuptools==78.1.0 tokenizers==0.21.4 huggingface-hub==0.36.2 tqdm==4.67.1 wheel==0.48.0 filelock==3.16.1 datasets==3.6.0 fsspec==2025.3.0 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 ENV HF_HUB_OFFLINE=1 TRANSFORMERS_OFFLINE=1 HF_DATASETS_OFFLINE=1