-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
86 lines (72 loc) · 1.81 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
FROM ivukotic/ml_base:latest
LABEL maintainer Ilija Vukotic <[email protected]>
# adding apache and neo4j
RUN wget -O - https://debian.neo4j.org/neotechnology.gpg.key | sudo apt-key add -
RUN echo 'deb https://debian.neo4j.org/repo stable/' | sudo tee /etc/apt/sources.list.d/neo4j.list
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y --allow-unauthenticated \
apache2 \
neo4j
##############################
# Python 2 packages
##############################
RUN pip2 --no-cache-dir install \
h5py \
tables \
ipykernel \
metakernel \
jupyter \
matplotlib \
numpy \
pandas \
Pillow \
scipy \
sklearn \
qtpy \
seaborn \
tensorflow-gpu \
keras \
elasticsearch \
gym \
graphviz \
JSAnimation \
Cython
RUN python2 -m ipykernel.kernelspec
#############################
# Python 3 packages
#############################
RUN pip3 --no-cache-dir install \
h5py \
tables \
ipykernel \
metakernel \
jupyter \
jupyterlab \
matplotlib \
numpy \
pandas \
Pillow \
scipy \
sklearn \
qtpy \
seaborn \
tensorflow-gpu \
keras \
elasticsearch \
gym \
graphviz \
JSAnimation \
ipywidgets \
Cython
RUN python3 -m ipykernel.kernelspec
# build info
RUN echo "Timestamp:" `date --utc` | tee /image-build-info.txt
COPY environment.sh /environment.sh
COPY run.sh /run.sh
RUN chmod 755 /run.sh /environment.sh
RUN jupyter serverextension enable --py jupyterlab --sys-prefix
COPY jupyter_notebook_config.py /root/.jupyter/
RUN export SHELL=/bin/bash
#execute service
CMD ["/.run"]