|
a |
|
b/docker/Dockerfile |
|
|
1 |
FROM pytorch/pytorch:1.8.1-cuda11.1-cudnn8-devel |
|
|
2 |
|
|
|
3 |
# metainformation |
|
|
4 |
LABEL org.opencontainers.image.version = "0.2.1" |
|
|
5 |
LABEL org.opencontainers.image.authors = "TorchDrug Team" |
|
|
6 |
LABEL org.opencontainers.image.source = "https://github.com/DeepGraphLearning/torchdrug" |
|
|
7 |
LABEL org.opencontainers.image.licenses = "Apache License 2.0" |
|
|
8 |
LABEL org.opencontainers.image.base.name="docker.io/pytorch/pytorch:1.8.1-cuda11.1-cudnn8-devel" |
|
|
9 |
|
|
|
10 |
RUN rm /etc/apt/sources.list.d/cuda.list |
|
|
11 |
RUN rm /etc/apt/sources.list.d/nvidia-ml.list |
|
|
12 |
|
|
|
13 |
RUN apt-get update && \ |
|
|
14 |
apt-get install -y libxrender1 && \ |
|
|
15 |
rm -rf /var/lib/apt/lists/* |
|
|
16 |
|
|
|
17 |
RUN pip install torch-scatter torch-cluster -f https://pytorch-geometric.com/whl/torch-1.8.1+cu111.html && \ |
|
|
18 |
pip install torchdrug |