diff --git a/Dockerfile b/Dockerfile index 5a10d8d4e..a8f3e2aa9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,14 +5,14 @@ # https://gitlab-master.nvidia.com/dl/JoC/nemo-ci/-/blob/main/.gitlab-ci.yml # We should keep versions in our container up to date to ensure that we get the latest tested perf improvements and # training loss curves from NeMo. -ARG BASE_IMAGE=nvcr.io/nvidia/pytorch:24.10-py3 +ARG BASE_IMAGE=nvcr.io/nvidia/pytorch:24.12-py3 FROM rust:1.82.0 as rust-env RUN rustup set profile minimal && \ - rustup install 1.82.0 && \ - rustup target add x86_64-unknown-linux-gnu && \ - rustup default 1.82.0 + rustup install 1.82.0 && \ + rustup target add x86_64-unknown-linux-gnu && \ + rustup default 1.82.0 FROM ${BASE_IMAGE} AS bionemo2-base @@ -73,11 +73,6 @@ RUN rm -rf /build # Addressing Security Scan Vulnerabilities RUN rm -rf /opt/pytorch/pytorch/third_party/onnx -RUN apt-get update && \ - apt-get install -y openssh-client=1:8.9p1-3ubuntu0.10 && \ - rm -rf /var/lib/apt/lists/* -RUN apt purge -y libslurm37 libpmi2-0 && \ - apt autoremove -y # Use UV to install python packages from the workspace. This just installs packages into the system's python @@ -92,7 +87,7 @@ ENV UV_LINK_MODE=copy \ # Install the bionemo-geomtric requirements ahead of copying over the rest of the repo, so that we can cache their # installation. These involve building some torch extensions, so they can take a while to install. RUN --mount=type=bind,source=./sub-packages/bionemo-geometric/requirements.txt,target=/requirements-pyg.txt \ - uv pip install --no-build-isolation -r /requirements-pyg.txt + uv pip install --break-system-packages --no-build-isolation -r /requirements-pyg.txt WORKDIR /workspace/bionemo2 @@ -111,17 +106,25 @@ ENV RUSTUP_HOME="/usr/local/rustup" RUN --mount=type=bind,source=./.git,target=./.git \ --mount=type=bind,source=./requirements-test.txt,target=/requirements-test.txt \ --mount=type=bind,source=./requirements-cve.txt,target=/requirements-cve.txt \ - <=1.16.0 +onnx>=1.17.0 setuptools>=70.0.0 aiohttp>=3.9.4 jupyterlab>=3.6.8