File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,23 @@ RUN apt-get update \
4
4
&& apt-get -y upgrade \
5
5
&& apt-get -y install python3 python3-pip python3-dev ipython3
6
6
7
- RUN pip3 install --no-cache notebook
7
+ RUN python3 -m pip install --no-cache-dir notebook jupyterlab
8
8
9
- ARG NB_USER=plotlynet
9
+ ARG NB_USER=jovyan
10
10
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}
18
24
19
25
ENV PATH="${PATH}:$HOME/.dotnet/tools/"
20
26
You can’t perform that action at this time.
0 commit comments