-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathstudent_dockerfile
More file actions
29 lines (19 loc) · 817 Bytes
/
Copy pathstudent_dockerfile
File metadata and controls
29 lines (19 loc) · 817 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
FROM jupyter/base-notebook
# Install nbgrader
RUN pip3 install nbgrader nose
RUN jupyter nbextension install --sys-prefix --py nbgrader --overwrite
RUN jupyter nbextension enable --sys-prefix --py nbgrader
RUN jupyter serverextension enable --sys-prefix --py nbgrader
# Install contrib nbextensions
RUN pip install jupyter_contrib_nbextensions
RUN jupyter contrib nbextension install --user
RUN jupyter nbextension enable init_cell/main
USER jovyan
RUN ipython profile create
COPY assets/ipython_config.py /home/jovyan/.ipython/profile_default/
COPY assets/training360_testloader.py /home/jovyan/.ipython/extensions/
WORKDIR /assignments
COPY ./notebooks/release /assignments
COPY assets/trust_notebooks.sh /tmp
RUN /tmp/trust_notebooks.sh
ENTRYPOINT ["tini", "--", "jupyter", "notebook", "--port", "8887"]