no message
parent
9ef92c2b2a
commit
53cdf75b23
20
Dockerfile
20
Dockerfile
|
@ -1,15 +1,17 @@
|
||||||
FROM pytorch/pytorch:1.6.0-cuda10.1-cudnn7-devel
|
FROM mingzailao/cuda:10.1-cudnn7-devel-ubuntu18.04
|
||||||
|
|
||||||
# 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
|
|
||||||
|
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
|
||||||
# fix (tzdata)
|
COPY ./torch-whl/torch-1.7.0+cu101-cp38-cp38-linux_x86_64.whl /torch-whl/torch-1.7.0+cu101-cp38-cp38-linux_x86_64.whl
|
||||||
ARG DEBIAN_FRONTEND=noninteractive
|
COPY ./torch-whl/torchvision-0.8.0-cp38-cp38-linux_x86_64.whl /torch-whl/torchvision-0.8.0-cp38-cp38-linux_x86_64.whl
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
RUN pip3 install ./torch-whl/torch-1.7.0+cu101-cp38-cp38-linux_x86_64.whl
|
||||||
|
RUN pip3 install ./torch-whl/torchvision-0.8.0-cp38-cp38-linux_x86_64.whl
|
||||||
|
|
Loading…
Reference in New Issue