提交 7d7621cd 编写于 作者: Y Yancey1989

Add --allow-root for jupyter start

上级 436ebbf6
...@@ -6,3 +6,4 @@ pandoc.template ...@@ -6,3 +6,4 @@ pandoc.template
py_env* py_env*
*.ipynb *.ipynb
build build
Dockerfile
...@@ -37,7 +37,7 @@ RUN ${update_mirror_cmd} ...@@ -37,7 +37,7 @@ RUN ${update_mirror_cmd}
pip install -U matplotlib jupyter numpy requests scipy pip install -U matplotlib jupyter numpy requests scipy
EXPOSE 8888 EXPOSE 8888
CMD ["sh", "-c", "jupyter notebook --ip=0.0.0.0 --no-browser --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True /book/"] CMD ["sh", "-c", "jupyter notebook --ip=0.0.0.0 --no-browser --allow-root --NotebookApp.token='' --NotebookApp.disable_check_xsrf=True /book/"]
EOF EOF
docker build --no-cache -t paddlepaddle/book:${paddle_tag} -t paddlepaddle/book:${book_tag} . docker build --no-cache -t paddlepaddle/book:${paddle_tag} -t paddlepaddle/book:${book_tag} .
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册