-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add opencontainers image-spec to
Dockerfile
- Loading branch information
1 parent
518a699
commit dbf6f4e
Showing
1 changed file
with
8 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
FROM pytorch/pytorch:1.8.1-cuda11.1-cudnn8-devel | ||
|
||
# metainformation | ||
LABEL org.opencontainers.image.version = "0.1.3" | ||
LABEL org.opencontainers.image.authors = "TorchDrug Team" | ||
LABEL org.opencontainers.image.source = "https://github.com/DeepGraphLearning/torchdrug" | ||
LABEL org.opencontainers.image.licenses = "Apache License 2.0" | ||
LABEL org.opencontainers.image.base.name="docker.io/pytorch/pytorch:1.8.1-cuda11.1-cudnn8-devel" | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libxrender1 && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.1+cu111.html && \ | ||
pip install torchdrug | ||
pip install torchdrug |