submit
This commit is contained in:
commit
fbeea0db38
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
FROM ubuntu:22.04
|
||||
RUN cp /etc/apt/sources.list /etc/apt/sources.list.ori && \
|
||||
sed -i s@/archive.ubuntu.com/@/mirrors.ustc.edu.cn/@g /etc/apt/sources.list && \
|
||||
sed -i s@/security.ubuntu.com/@/mirrors.ustc.edu.cn/@g /etc/apt/sources.list && \
|
||||
apt clean
|
||||
RUN apt update && apt install -y python3 python3-pip
|
||||
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple jupyter
|
||||
RUN jupyter notebook --generate-config
|
||||
RUN apt install -y wget
|
||||
RUN rm /root/.jupyter/jupyter_notebook_config.py && mkdir /jupyter
|
||||
WORKDIR /root/.jupyter/
|
||||
RUN wget http://www.americas.asia/cdn/docker/jupyter/jupyter_notebook_config.py -O ./jupyter_notebook_config.py
|
||||
EXPOSE 8888
|
||||
CMD ["jupyter", "notebook", "--allow-root"]
|
||||
Loading…
x
Reference in New Issue
Block a user