diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f3fee9a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +torch-whl/ diff --git a/Dockerfile b/Dockerfile index 61f259d..540aa98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,16 @@ FROM mingzailao/cuda:10.2-cudnn8-devel-ubuntu18.04 +RUN rm /usr/bin/python3 +RUN ln -s /usr/bin/python3.8 /usr/bin/python3 +RUN ln -s /usr/bin/python3 /usr/bin/python +RUN apt-get install build-essential libatlas-base-dev gfortran -y +RUN pip3 install Cython +RUN pip3 install --upgrade pip -RUN pip3 install torch==1.9.1+cu102 --extra-index-url https://download.pytorch.org/whl/cu102 - +COPY ./torch-whl/torch-1.9.0+cu102-cp38-cp38-linux_x86_64.whl /torch-whl/torch-1.9.0+cu102-cp38-cp38-linux_x86_64.whl + +RUN pip3 install ./torch-whl/torch-1.9.0+cu102-cp38-cp38-linux_x86_64.whl