File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
FROM debian:8.8
2
- ENV VER 8.0
2
+ ENV VER 8.1
3
3
ENV PASSWORD pass1234
4
4
RUN apt-get -qq update \
5
5
&& apt-get -qq install -y --no-install-recommends sudo bzip2 wget
@@ -15,7 +15,7 @@ RUN sudo apt-get -qq install -y --no-install-recommends \
15
15
python-pip \
16
16
libpython2.7 \
17
17
gfortran \
18
- && sudo apt-get -y clean
18
+ && sudo apt-get -y clean && sudo apt-get autoremove
19
19
WORKDIR /home/sage
20
20
RUN wget -q http://ftp.yz.yamagata-u.ac.jp/pub/math/sage/linux/64bit/sage-${VER}-Debian_GNU_Linux_8-x86_64.tar.bz2 \
21
21
-O ./sage.tar.bz2 \
@@ -25,6 +25,12 @@ COPY ./sagenb.sh ./
25
25
COPY ./jupyter.sh ./
26
26
RUN sudo ln -s /home/sage/SageMath/sage /usr/local/bin/ \
27
27
&& sudo chmod +x ./sagenb.sh \
28
- && sudo chmod +x ./jupyter.sh
28
+ && sudo chmod +x ./jupyter.sh \
29
+ && sudo chown -R sage:sage /home/sage/ \
30
+ && sudo chmod -R 777 /home/sage/ \
31
+ && mkdir /home/sage/jupyter \
32
+ && mkdir /home/sage/.jupyter
33
+ COPY ./jupyter_notebook_config.py /home/sage/SageMath/local/etc/jupyter/
34
+ COPY ./jupyter_notebook_config.py /home/sage/.jupyter/
29
35
EXPOSE 8080 8888
30
36
ENTRYPOINT ["./sagenb.sh" ]
You can’t perform that action at this time.
0 commit comments