Skip to content

Commit b63019f

Browse files
committed
#366: try fix binder dockerfile
1 parent 518c76a commit b63019f

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

docs/Dockerfile

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,23 @@ RUN apt-get update \
44
&& apt-get -y upgrade \
55
&& apt-get -y install python3 python3-pip python3-dev ipython3
66

7-
RUN pip3 install --no-cache notebook
7+
RUN python3 -m pip install --no-cache-dir notebook jupyterlab
88

9-
ARG NB_USER=plotlynet
9+
ARG NB_USER=jovyan
1010
ARG NB_UID=1000
11-
RUN useradd -m -s /bin/bash -N -u $NB_UID $NB_USER
12-
13-
USER $NB_USER
14-
15-
ENV HOME=/home/$NB_USER
16-
17-
WORKDIR $HOME
11+
ENV USER ${NB_USER}
12+
ENV NB_UID ${NB_UID}
13+
ENV HOME /home/${NB_USER}
14+
15+
RUN adduser --disabled-password \
16+
--gecos "Default user" \
17+
--uid ${NB_UID} \
18+
${NB_USER}
19+
20+
COPY . ${HOME}
21+
USER root
22+
RUN chown -R ${NB_UID} ${HOME}
23+
USER ${NB_USER}
1824

1925
ENV PATH="${PATH}:$HOME/.dotnet/tools/"
2026

0 commit comments

Comments
 (0)