Skip to content

Commit 70a7091

Browse files
committed
add Dockerfile
1 parent 278bcc8 commit 70a7091

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

docker/Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM pytorch/pytorch:1.8.1-cuda11.1-cudnn8-devel
2+
3+
RUN apt-get update && \
4+
apt-get install -y libxrender1 && \
5+
rm -rf /var/lib/apt/lists/*
6+
7+
RUN pip install torch-scatter -f https://pytorch-geometric.com/whl/torch-1.8.1+cu111.html && \
8+
pip install torchdrug

docker/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Docker
2+
======
3+
4+
Run a Container
5+
---------------
6+
7+
We prepare a pre-built docker image on Docker Hub, based on PyTorch 1.8.1 and CUDA 11.1.
8+
To start a container with our docker image, use the following line.
9+
10+
```bash
11+
docker run --gpus all -it milagraph/torchdrug
12+
```
13+
14+
Build Docker Image
15+
------------------
16+
17+
You may also use the Dockerfile provided in this folder to build an image from scratch.
18+
Run the following command in this directory.
19+
20+
```bash
21+
docker build -t "your-image-name" .
22+
```

0 commit comments

Comments
 (0)