This repository was archived by the owner on May 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (52 loc) · 1.29 KB
/
Dockerfile
File metadata and controls
63 lines (52 loc) · 1.29 KB
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
FROM ubuntu:14.04.2
MAINTAINER crs
# install required system packages
RUN apt-get update -y
RUN apt-get install -y build-essential \
curl \
gfortran \
git \
libatlas3-base \
libfreetype6-dev \
libjpeg8-dev \
liblapack-dev \
libmysqlclient-dev \
libopenblas-base \
libopenblas-dev \
libpng-dev \
libxml2-dev \
libzmq-dev \
pkg-config \
python3-dev \
python3-pip \
vim \
wget
RUN pip3 install numpy==1.9.2
RUN pip3 install beautifulsoup4==4.3.2 \
ftfy==4.0.0 \
ipython[all]==3.1.0 \
matplotlib==1.4.3 \
mysqlclient==1.3.6 \
pandas==0.16.1 \
python-igraph==0.7.1-4 \
scikit-learn==0.16.1 \
scipy==0.15.1
# Set the timezone.
RUN sudo echo "Europe/Berlin" > /etc/timezone
RUN sudo dpkg-reconfigure -f noninteractive tzdata
RUN ln -s /usr/bin/python3 /usr/bin/python
#run as non-privileged user and chown dir
RUN echo "root:root" | chpasswd
RUN mkdir -p /notebooks
# directory for notebooks
VOLUME /notebooks
WORKDIR /notebooks/
ADD test_notebook.ipynb test_notebook.ipynb
RUN useradd -m -s /bin/bash jupyter
USER jupyter
ENV HOME /home/jupyter
ENV SHELL /bin/bash
ENV USER jupyter
ENV PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
EXPOSE 8888
CMD ipython notebook --no-browser --ip=0.0.0.0