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 [""]
ubuntu1804-gpu
最新推荐文章于 2024-09-06 16:38:41 发布