mingzailao-torch/Dockerfile

14 lines
363 B
Docker

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
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