-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
69 lines (54 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
#FROM tensorflow/tensorflow:latest-gpu-py3
FROM tensorflow/tensorflow:latest-py3
#FROM tensorflow/tensorflow:1.0.0-gpu-py3
# Removing some notebook which caused confusion
RUN rm /notebooks/1_hello_tensorflow.ipynb
RUN rm /notebooks/2_getting_started.ipynb
RUN rm /notebooks/3_mnist_from_scratch.ipynb
MAINTAINER elvis murina <[email protected]>
RUN pip --no-cache-dir install \
ipykernel \
jupyter \
matplotlib \
pandas \
h5py \
keras \
tflearn \
ggplot
# RUN pip --no-cache-dir install tflearn
# RUN pip install git+https://github.com/tflearn/tflearn.git
# RUN pip install keras
RUN sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list'
RUN gpg --keyserver keyserver.ubuntu.com --recv-key E084DAB9
RUN gpg -a --export E084DAB9 | apt-key add -
RUN apt-get update && apt-get install -y git
RUN apt-get -y install r-base
# Pydot for Keras for Beate
RUN apt-get -y install python-pydot python-pydot-ng graphviz #For Keras model visualization
RUN pip3 install pydot
RUN pip3 install graphviz
#RUN apt-get install libzmq3-de
RUN pip3 install rpy2
# For toc in notebook
RUN pip install jupyter_contrib_nbextensions
RUN jupyter contrib nbextension install --user
RUN pip install jupyter_nbextensions_configurator
# Clean
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Some nice stuff for R
RUN R -e "install.packages('tidyverse', repos = 'https://cloud.r-project.org')"
# Default directory that will be saved by htcondor
#RUN mkdir /tmp/results
#RUN nvidia-smi -f /tmp/temp.txt
# COPY -> to copy files/data from to localmachine
# COPY notebooks /notebooks
# TensorBoard
EXPOSE 6006
# IPython
EXPOSE 8888
WORKDIR "/notebooks"
# COPY notebooks /notebooks
COPY run_jupyter_2.sh /
RUN ["chmod", "+x", "/run_jupyter_2.sh"]
CMD ["/run_jupyter_2.sh"]