加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.25 KB
一键复制 编辑 原始数据 按行查看 历史
Tsubasa Hirakawa 提交于 2019-10-11 12:53 . Update Dockerfile
FROM nvidia/cuda:9.0-cudnn7-devel-ubuntu16.04
MAINTAINER hirakawat
# basic packages
RUN apt-get -y update && apt-get -y upgrade && \
apt-get install -y sudo cmake g++ gfortran \
libhdf5-dev pkg-config build-essential \
wget curl git htop tmux vim ffmpeg rsync openssh-server \
python3 python3-dev libpython3-dev && \
apt-get -y autoremove && apt-get -y clean && apt-get -y autoclean && \
rm -rf /var/lib/apt/lists/*
# cuda path
ENV CUDA_ROOT /usr/local/cuda
ENV PATH $PATH:$CUDA_ROOT/bin
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:$CUDA_ROOT/lib64:$CUDA_ROOT/lib:/usr/local/nvidia/lib64:/usr/local/nvidia/lib
ENV LIBRARY_PATH /usr/local/nvidia/lib64:/usr/local/nvidia/lib:/usr/local/cuda/lib64/stubs:/usr/local/cuda/lib64:/usr/local/cuda/lib$LIBRARY_PATH
# python3 modules
RUN wget https://bootstrap.pypa.io/get-pip.py && python3 get-pip.py && \
pip3 install --upgrade --no-cache-dir wheel six setuptools cython numpy scipy==1.2.0 \
matplotlib seaborn scikit-learn scikit-image pillow requests \
jupyterlab networkx h5py pandas plotly protobuf tqdm tensorboardX colorama setproctitle && \
pip3 install https://download.pytorch.org/whl/cu90/torch-1.0.0-cp35-cp35m-linux_x86_64.whl
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化