diff --git a/.gitignore b/.gitignore index e7f8501f2c04d0ddb9a27202b3e91d33c47d9de8..fab52d7877497804092cf72d52bd64dc2f4f1747 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ pandoc.template py_env* *.ipynb build +Dockerfile diff --git a/.tools/build_docker.sh b/.tools/build_docker.sh index 0b7735967ff2aae90a3f6597917e51517a8eba44..7a06c180d2ed0a99c2826ebba916aa9cbd842767 100755 --- a/.tools/build_docker.sh +++ b/.tools/build_docker.sh @@ -37,7 +37,7 @@ RUN ${update_mirror_cmd} pip install -U matplotlib jupyter numpy requests scipy 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 docker build --no-cache -t paddlepaddle/book:${paddle_tag} -t paddlepaddle/book:${book_tag} .