forked from oschuett/appmode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (34 loc) · 1.06 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
#
#
#
# This Dockerfile is mainly meant for developing and testing:
# 1. docker build --tag appmode ./
# 2. docker run --init -ti -p8888:8888 appmode
# 3. open http://localhost:8888/apps/example_app.ipynb
#
#
#
FROM ubuntu:zesty
USER root
# Install some Debian package
RUN apt-get update && apt-get install -y --no-install-recommends \
python3-setuptools \
python3-wheel \
python3-pip \
less \
nano \
sudo \
&& rm -rf /var/lib/apt/lists/*
# install Jupyter
RUN pip3 install notebook ipywidgets && \
jupyter nbextension enable --sys-prefix --py widgetsnbextension
# install Appmode
COPY . /opt/appmode
WORKDIR /opt/appmode/
RUN pip3 install . && \
jupyter nbextension enable --py --sys-prefix appmode && \
jupyter serverextension enable --py --sys-prefix appmode
# Launch Notebook server
EXPOSE 8888
CMD ["jupyter-notebook", "--ip=0.0.0.0", "--allow-root", "--no-browser", "--NotebookApp.token=''"]
#EOF