-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile-dlkit-anaconda-gpu
31 lines (24 loc) · 1.14 KB
/
Dockerfile-dlkit-anaconda-gpu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM nvidia/cuda:8.0-cudnn6-runtime-ubuntu16.04
MAINTAINER Institute of Computer Software, Nanjing University <[email protected]>
ENV APT_INSTALL="apt-get install -y --no-install-recommends"
ENV PIP_INSTALL="pip --no-cache-dir install --upgrade"
ENV PATH=/opt/anaconda3/bin:$PATH
ENV LD_LIBRARY_PATH /usr/local/cuda/extras/CUPTI/lib64:$LD_LIBRARY_PATH
RUN rm -rf /var/lib/apt/lists/* \
/etc/apt/sources.list.d/cuda.list \
/etc/apt/sources.list.d/nvidia-ml.list &&\
apt-get update &&\
# tools
$APT_INSTALL curl git wget rsync unzip bzip2 \
libglib2.0-0 libgl1-mesa-glx libgl1-mesa-dev &&\
# Anaconda
curl -s -k https://repo.continuum.io/archive/Anaconda3-5.0.1-Linux-x86_64.sh -O &&\
bash Anaconda3-5.0.1-Linux-x86_64.sh -b -p /opt/anaconda3 &&\
rm Anaconda3-5.0.1-Linux-x86_64.sh &&\
echo 'export PATH=/opt/anaconda3/bin:$PATH' >> /etc/profile &&\
export PATH=/opt/anaconda3/bin:$PATH &&\
conda update -y conda &&\
conda install -y matplotlib colour numpy pyqt &&\
apt-get clean && apt-get autoremove &&\
rm -rf /var/lib/apt/lists/* /tmp/* ~/*
EXPOSE 6006 8888