Skip to content

Commit edb898e

Browse files
committed
Add jupyter binder requirements
1 parent e3b64f7 commit edb898e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Dockerfile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,16 @@ COPY --from=julia /root/.julia /root/.julia
4040
COPY env/fix_gdal.sh .
4141
RUN bash fix_gdal.sh
4242
EXPOSE 8888
43-
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root"]
43+
44+
# allow jupyter binder
45+
ARG NB_USER=jovyan
46+
ARG NB_UID=1000
47+
ENV USER=${NB_USER}
48+
ENV HOME=/home/${NB_USER}
49+
RUN adduser --disabled-password \
50+
--gecos "Default user" \
51+
--uid ${NB_UID} \
52+
${NB_USER}
53+
WORKDIR ${HOME}
54+
USER ${USER}
55+
CMD ["/bin/bash"]

0 commit comments

Comments
 (0)