From edb898ef02757fe277e008afb699d30894053e7c Mon Sep 17 00:00:00 2001 From: danlooo Date: Wed, 29 Oct 2025 10:23:04 +0100 Subject: [PATCH] Add jupyter binder requirements --- Dockerfile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e5d0f4..78d9c2d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,4 +40,16 @@ COPY --from=julia /root/.julia /root/.julia COPY env/fix_gdal.sh . RUN bash fix_gdal.sh EXPOSE 8888 -CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root"] \ No newline at end of file + +# allow jupyter binder +ARG NB_USER=jovyan +ARG NB_UID=1000 +ENV USER=${NB_USER} +ENV HOME=/home/${NB_USER} +RUN adduser --disabled-password \ + --gecos "Default user" \ + --uid ${NB_UID} \ + ${NB_USER} +WORKDIR ${HOME} +USER ${USER} +CMD ["/bin/bash"] \ No newline at end of file