From d7d4dac2cdbe7ee5bab31bc2adab1d68653cfe35 Mon Sep 17 00:00:00 2001 From: MoritzWeber Date: Mon, 4 Sep 2023 17:50:19 +0200 Subject: [PATCH] fix: Create `/shared` directory in Dockerfile Fixes #196 --- jupyter-notebook/Dockerfile | 3 ++- jupyter-notebook/docker-entrypoint.sh | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jupyter-notebook/Dockerfile b/jupyter-notebook/Dockerfile index 56234a6a..547d70bc 100644 --- a/jupyter-notebook/Dockerfile +++ b/jupyter-notebook/Dockerfile @@ -18,7 +18,8 @@ RUN apt update && \ COPY docker-entrypoint.sh / COPY requirements_template.txt /etc/skel -RUN chmod +x /docker-entrypoint.sh +RUN chmod +x /docker-entrypoint.sh && \ + mkdir -p "/shared" && chown techuser "/shared" USER techuser diff --git a/jupyter-notebook/docker-entrypoint.sh b/jupyter-notebook/docker-entrypoint.sh index bcfd0d0d..74ba58f3 100755 --- a/jupyter-notebook/docker-entrypoint.sh +++ b/jupyter-notebook/docker-entrypoint.sh @@ -12,7 +12,6 @@ mkdir -p "$NOTEBOOKS_DIR" test -f "$NOTEBOOKS_DIR/requirements.txt" || cp /etc/skel/requirements_template.txt "$NOTEBOOKS_DIR/requirements.txt" pip install -U -r "$NOTEBOOKS_DIR/requirements.txt" -r /etc/skel/requirements_template.txt 2>&1 | tee "$NOTEBOOKS_DIR/installlog.txt" -mkdir -p "/shared" test -d "$NOTEBOOKS_DIR/shared" || ln -s /shared "$NOTEBOOKS_DIR/shared" echo "---START_SESSION---"