diff --git a/Dockerfile b/Dockerfile index a08c850..e4c5657 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM developeranaz/jupyter-rclone +RUN apt install net-tools COPY entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh CMD /entrypoint.sh diff --git a/entrypoint.sh b/entrypoint.sh index 9991710..5c4bb2a 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,3 @@ #!/bin/bash - -jupyter notebook --ip=0.0.0.0 --port=$PORT --NotebookApp.token='' --NotebookApp.password='' +echo $PORT >/PORT +jupyter notebook --ip=0.0.0.0 --port=$(cat /PORT) --NotebookApp.token='' --NotebookApp.password=''