Skip to content

Commit 446385c

Browse files
authored
[docker] add dockerfile (#31)
* add dockerfile * update readme
1 parent 63f7df3 commit 446385c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ pip install tensornvme
5555
```
5656
All acceptable environment variables are the same as those when installing from source.
5757

58+
## Use docker
59+
60+
```shell
61+
git clone https://github.com/hpcaitech/TensorNVMe.git && cd TensorNVMe/docker && docker build -t tensornvme .
62+
```
63+
5864
## CLI
5965

6066
We provide a CLI to test whether backends work well.

docker/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM hpcaitech/pytorch-cuda:1.11.0-11.3.0
2+
3+
# install dependencies
4+
RUN conda install -y cmake
5+
6+
# install tensornvme
7+
RUN git clone https://github.com/hpcaitech/TensorNVMe.git && \
8+
cd TensorNVMe && \
9+
pip install -r requirements.txt && \
10+
pip install -v --no-cache-dir .

0 commit comments

Comments
 (0)