19 lines
904 B
Docker
19 lines
904 B
Docker
FROM mingzailao/cuda:11.7.0-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
|
|
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
|
|
|
|
|
|
|
|
|