| ARG PYTORCH_VERSION=2.3.1 |
| ARG CUDA_VERSION=cuda12.1-cudnn8-devel |
| FROM pytorch/pytorch:${PYTORCH_VERSION}-${CUDA_VERSION} |
|
|
| RUN apt-get update -y && \ |
| apt-get upgrade -y && \ |
| apt-get install -y git make g++ gcc |
|
|
| |
| ARG BREAK_CACHE=1 |
| COPY matsciml /opt/matsciml |
| WORKDIR /opt/matsciml |
| RUN pip install -f https://data.dgl.ai/wheels/repo.html -e './[all]' |
| |
| RUN pip install dgl==2.3.0 -f https://data.dgl.ai/wheels/torch-2.3/cu121/repo.html |
| |
| RUN pip install --no-cache-dir --force-reinstall torch_scatter torch_sparse torch_cluster torch_spline_conv -f https://data.pyg.org/whl/torch-2.3.1+cu121.html |
| |
| RUN pip install pymatgen==2023.9.25 |
| |
| RUN pip install tensorboardx wandb mlflow aim numpy==1.26.4 |
|
|
| |
| RUN groupadd user && useradd -d /home/user -g user user |
| RUN chown -R user:user /opt/matsciml |
| |
| RUN chown -R user:user /opt/conda |
|
|
| USER user |
|
|
| HEALTHCHECK NONE |
|
|