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---"