no message

v1.6
mingzailao 2023-11-19 14:22:44 +08:00
parent eff9035e29
commit 9ef92c2b2a
1 changed files with 10 additions and 13 deletions

View File

@ -1,18 +1,15 @@
FROM mingzailao/cuda:11.7.0-cudnn8-devel-ubuntu18.04
FROM pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel
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-1.13.1+cu117-cp38-cp38-linux_x86_64.whl /torch-whl/torch-1.13.1+cu117-cp38-cp38-linux_x86_64.whl
COPY ./torch-whl/torchvision-0.14.1+cu117-cp38-cp38-linux_x86_64.whl /torch-whl/torchvision-0.14.1+cu117-cp38-cp38-linux_x86_64.whl
COPY ./torch-whl/torchaudio-0.13.1+cu117-cp38-cp38-linux_x86_64.whl /torch-whl/torchaudio-0.13.1+cu117-cp38-cp38-linux_x86_64.whl
RUN pip3 install ./torch-whl/torch-1.13.1+cu117-cp38-cp38-linux_x86_64.whl
RUN pip3 install ./torch-whl/torchvision-0.14.1+cu117-cp38-cp38-linux_x86_64.whl
RUN pip3 install ./torch-whl/torchaudio-0.13.1+cu117-cp38-cp38-linux_x86_64.whl
# encoding
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
RUN echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
RUN echo "LANG=en_US.UTF-8" > /etc/locale.conf
# fix (tzdata)
ARG DEBIAN_FRONTEND=noninteractive