-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
39 lines (30 loc) · 906 Bytes
/
Dockerfile
File metadata and controls
39 lines (30 loc) · 906 Bytes
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
FROM continuumio/anaconda
MAINTAINER Magrathea Labs <contact@magrathealabs.com>
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
ENV PYTHONIOENCODING UTF-8
RUN conda update --all && \
conda install --yes \
jupyter \
ipywidgets \
pandas \
matplotlib \
seaborn \
numpy \
scipy \
scikit-learn \
scikit-image
RUN pip install widgetsnbextension && \
jupyter nbextension enable --py widgetsnbextension
ADD configs/ /tmp/
RUN mkdir -p -m 700 /root/.jupyter/ && \
cp /tmp/jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py
VOLUME /notebooks
WORKDIR /notebooks
EXPOSE 8888
ENV TINI_VERSION v0.9.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
ENTRYPOINT ["/tini", "--"]
CMD ["jupyter", "notebook", "--no-browser", "--allow-root"]