-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
67 lines (63 loc) · 1.72 KB
/
Dockerfile
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
FROM ubuntu:16.04
RUN DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install -y --no-install-recommends \
ca-certificates \
graphviz \
libpng16-16 \
libjpeg-turbo8 \
libgomp1 \
openssl \
python3 \
python3-pip \
&& BUILD_DEPS="\
build-essential \
cmake \
curl \
git \
python3-dev \
tcl-dev \
xz-utils \
zlib1g-dev \
" \
&& apt-get install -y --no-install-recommends $BUILD_DEPS \
&& pip3 install --upgrade pip==9.0.1 \
&& pip3 install --upgrade setuptools wheel \
&& pip3 install --upgrade \
cffi \
graphviz \
h5py \
ipywidgets \
jupyter \
jupyterlab \
keras \
matplotlib \
numpy \
pandas \
pillow \
pymkl \
pyyaml \
requests \
scikit-learn \
scipy \
seaborn \
tensorflow \
xgboost \
http://download.pytorch.org/whl/cpu/torch-0.3.1-cp35-cp35m-linux_x86_64.whl \
torchvision \
&& jupyter nbextension enable --py widgetsnbextension \
&& jupyter serverextension enable --py jupyterlab \
&& apt-get remove --purge --auto-remove -y $BUILD_DEPS \
&& apt-get clean \
&& apt-get autoclean \
&& apt-get autoremove \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /root/.cache/pip/* \
&& find /usr/lib/python3 -name __pycache__ | xargs rm -r \
&& find / \( -name '*.pyc' -o -name '*.pyo' \) -exec rm -rf '{}' +
# COPY /copyroot /
WORKDIR /notebooks
CMD ["jupyter", "lab", \
"--ip=0.0.0.0", "--port=8888", \
"--no-browser", "--allow-root", \
"--NotebookApp.token="]