File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -2,20 +2,21 @@ FROM sagemath/sagemath:8.0
2
2
3
3
# Inspired from https://mybinder.readthedocs.io/en/latest/dockerfile.html#preparing-your-dockerfile
4
4
5
- ENV NB_USER sage
6
- ENV HOME /home/${NB_USER}
5
+ ENV NB_USER= sage
6
+ ENV HOME /home/sage
7
7
8
- # Make sure the contents of our repo are in ${HOME}
9
- COPY . ${HOME}
10
- USER root
11
- COPY jupyter jupyter-notebook /usr/bin/
12
- RUN chown -R ${NB_USER}:${NB_USER} ${HOME}
13
- USER ${NB_USER}
14
-
15
- # Upgrade to jupyter 5.* as required by mybinder
8
+ # Upgrade to jupyter 5.* as required by mybinder and install additional kernels
9
+ # This will eventually be lifted upstream to sagemath/sagemath
16
10
RUN sage -pip install "notebook>=5" "ipykernel>=4.6"
17
-
18
- # Install additional kernels
19
11
RUN sage -i gap_jupyter
20
12
RUN sage -i singular_jupyter
21
13
RUN sage -i pari_jupyter
14
+
15
+ USER root
16
+ # This will eventually be lifted upstream to sagemath/sagemath
17
+ COPY jupyter jupyter-notebook /usr/bin/
18
+
19
+ # Make sure the contents of our repo are in ${HOME}
20
+ COPY . ${HOME}
21
+ RUN chown -R ${NB_USER}:${NB_USER} ${HOME}
22
+ USER ${NB_USER}
You can’t perform that action at this time.
0 commit comments