FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04 #ADD Python-3.5.5.tgz /opt #更新apt RUN apt-get update && apt-get install -y wget RUN wget -O /opt/Python-3.5.5.tar.tgz https://www.python.org/ftp/python/3.5.5/Python-3.5.5.tgz #安装依赖 RUN apt-get install gcc -y && apt-get install make -y && apt-get install vim -y && apt-get install openssl -y && apt-get install libssl-dev -y && apt-get install python3-pip -y RUN cd /opt/ && tar xf Python-3.5.5.tar.tgz && /opt/Python-3.5.5/configure --prefix=/usr/local/python3.5 && make && make install RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ tensorflow-gpu==1.11.0 && pip3 install -i https://mirrors.aliyun.com/pypi/simple/ Keras==2.2.4 CMD [""]
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)