From 12195ef1a9a0c3b3f8636e23a96c5b982fac4b89 Mon Sep 17 00:00:00 2001 From: Xaver Russ Date: Tue, 7 Oct 2025 13:26:19 +0200 Subject: [PATCH] more jupyter --- containers/jupyter/Dockerfile | 5 ++++- containers/jupyter/start.sh | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 containers/jupyter/start.sh diff --git a/containers/jupyter/Dockerfile b/containers/jupyter/Dockerfile index 886af4d..db86146 100644 --- a/containers/jupyter/Dockerfile +++ b/containers/jupyter/Dockerfile @@ -11,7 +11,10 @@ VOLUME ["/opt/notebooks"] EXPOSE 80 # Start jupyter on port 80 and keep logs in /root/jupyter.log -ENTRYPOINT ["/bin/bash", "-c", "/opt/conda/bin/jupyter notebook --notebook-dir=/opt/notebooks --ip='*' --port=80 --no-browser --allow-root > /root/jupyter.log 2>&1"] +COPY start.sh /usr/local/bin/start.sh +RUN chmod +x /usr/local/bin/start.sh + +ENTRYPOINT ["/usr/local/bin/start.sh"] diff --git a/containers/jupyter/start.sh b/containers/jupyter/start.sh new file mode 100644 index 0000000..a1fa678 --- /dev/null +++ b/containers/jupyter/start.sh @@ -0,0 +1,10 @@ +#!/bin/bash +set -e + +# Add more services here if needed, then exec the main one last +exec /opt/conda/bin/jupyter notebook \ + --notebook-dir=/opt/notebooks \ + --ip='*' \ + --port=80 \ + --no-browser \ + --allow-root