mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-16 06:22:56 +00:00
Change user from jovyan to nobody
Contribution (c) Copyright IBM Corp. 2016
This commit is contained in:
@@ -28,17 +28,9 @@ RUN wget --quiet https://github.com/krallin/tini/releases/download/v0.6.0/tini &
|
|||||||
|
|
||||||
# Configure environment
|
# Configure environment
|
||||||
ENV SHELL /bin/bash
|
ENV SHELL /bin/bash
|
||||||
ENV NB_USER jovyan
|
ENV NB_USER nobody
|
||||||
ENV NB_UID 1000
|
ENV NB_UID 1000
|
||||||
|
|
||||||
# Create jovyan user with UID=1000 and in the 'users' group
|
|
||||||
# Grant ownership over the home dir, but stick the group as root.
|
|
||||||
RUN useradd -m -s /bin/bash -N -u $NB_UID $NB_USER && \
|
|
||||||
mkdir /home/$NB_USER/work && \
|
|
||||||
mkdir /home/$NB_USER/.jupyter && \
|
|
||||||
mkdir /home/$NB_USER/.local && \
|
|
||||||
chown -R $NB_USER:users /home/$NB_USER
|
|
||||||
|
|
||||||
# Install Kernel Gateway
|
# Install Kernel Gateway
|
||||||
RUN pip3 install jupyter_kernel_gateway==0.2.0
|
RUN pip3 install jupyter_kernel_gateway==0.2.0
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user