Skip to content

Commit 19c8737

Browse files
committedDec 29, 2017
versi 8.1
1 parent 2a9f9fa commit 19c8737

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed
 

‎Dockerfile

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM debian:8.8
2-
ENV VER 8.0
2+
ENV VER 8.1
33
ENV PASSWORD pass1234
44
RUN apt-get -qq update \
55
&& 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 \
1515
python-pip \
1616
libpython2.7 \
1717
gfortran \
18-
&& sudo apt-get -y clean
18+
&& sudo apt-get -y clean && sudo apt-get autoremove
1919
WORKDIR /home/sage
2020
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 \
2121
-O ./sage.tar.bz2 \
@@ -25,6 +25,12 @@ COPY ./sagenb.sh ./
2525
COPY ./jupyter.sh ./
2626
RUN sudo ln -s /home/sage/SageMath/sage /usr/local/bin/ \
2727
&& 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/
2935
EXPOSE 8080 8888
3036
ENTRYPOINT ["./sagenb.sh"]

0 commit comments

Comments
 (0)
Please sign in to comment.