mingzailao-torch/Dockerfile

19 lines
904 B
Docker
Raw Normal View History

2023-05-04 16:47:07 +08:00
FROM mingzailao/cuda:11.7.0-cudnn8-devel-ubuntu18.04
2023-03-13 19:56:38 +08:00
2023-05-25 13:59:23 +08:00
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
2023-05-04 16:47:07 +08:00
RUN pip3 install --upgrade pip
2023-05-25 15:23:48 +08:00
COPY ./torch-whl/torch-2.0.0+cu117-cp38-cp38-linux_x86_64.whl /torch-whl/torch-2.0.0+cu117-cp38-cp38-linux_x86_64.whl
COPY ./torch-whl/torchvision-0.15.1+cu117-cp38-cp38-linux_x86_64.whl /torch-whl/torchvision-0.15.1+cu117-cp38-cp38-linux_x86_64.whl
COPY ./torch-whl/torchaudio-2.0.1+cu117-cp38-cp38-linux_x86_64.whl /torch-whl/torchaudio-2.0.1+cu117-cp38-cp38-linux_x86_64.whl
RUN pip3 install ./torch-whl/torch-2.0.0+cu117-cp38-cp38-linux_x86_64.whl
RUN pip3 install ./torch-whl/torchvision-0.15.1+cu117-cp38-cp38-linux_x86_64.whl
RUN pip3 install ./torch-whl/torchaudio-2.0.1+cu117-cp38-cp38-linux_x86_64.whl
2023-03-13 19:56:38 +08:00