-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
60 lines (45 loc) · 1.93 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM ubuntu:focal
# Set the working directory in the container
# RUN useradd -rm -d /home/ubuntu -s /bin/bash -g root -G sudo -u 1001 ubuntu
WORKDIR /root/
RUN echo "LANG=en_US.UTF-8" >> /etc/environment
RUN echo "LANGUAGE=en_US.UTF-8" >> /etc/environment
RUN echo "LC_ALL=en_US.UTF-8" >> /etc/environment
RUN echo "LC_CTYPE=en_US.UTF-8" >> /etc/environment
RUN apt update
RUN apt install software-properties-common -y
RUN apt -y upgrade
RUN add-apt-repository ppa:deadsnakes/ppa -y
RUN apt update
RUN apt install -y python3.10 python3.10-venv python3.10-dev python3-pip
RUN pip3 install notebook==6.1.5
RUN pip3 install jupyter_contrib_nbextensions==0.5.1
RUN jupyter contrib nbextension install
RUN jupyter contrib nbextension install
RUN jupyter-nbextension enable splitcell/splitcell
RUN jupyter-nbextension enable python-markdown/main
RUN jupyter-nbextension enable toc2/main
RUN jupyter-nbextension enable hide_input/main
RUN jupyter-nbextension enable contrib_nbextensions_help_item/main
RUN jupyter-nbextension enable nbextensions_configurator/config_menu/main
RUN pip3 install RISE
RUN jupyter-nbextension install rise --py --sys-prefix
RUN jupyter-nbextension enable rise --py --sys-prefix
RUN apt install -y libcairo2-dev libjpeg-dev libgif-dev libpango1.0-dev ffmpeg sox
RUN pip3 install manim
RUN apt install -y texlive texlive-latex-extra texlive-fonts-extra texlive-science texlive-fonts-recommended dvipng
RUN pip install jupyterlab-rise
RUN apt install nodejs -y
RUN apt install npm -y
#RUN mkdir ~/.jupyter
RUN chmod a+rwx ~/.jupyter/
COPY jupyter_notebook_config.py /root/.jupyter/jupyter_notebook_config.py
RUN chmod a+rwx ~/.jupyter/jupyter_notebook_config.py
#RUN mkdir ~/.jupyter/nbconfig
#RUN chmod a+rwx ~/.jupyter/nbconfig
#RUN cp ./jupyter/.jupyter/nbconfig/* ~/.jupyter/nbconfig/*
#RUN chmod a+rwx ~/.jupyter/nbconfig/*
EXPOSE 8888
VOLUME [ "/root/notebooks" ]
WORKDIR /root/notebooks
ENTRYPOINT ["jupyter", "notebook", "--allow-root" ]