mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 15:02:57 +00:00
Use NB_UID for USER statement in Dockerfile so deployment platform can verify that image doesn't run as root.
This commit is contained in:
@@ -12,7 +12,7 @@ RUN apt-get update && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
USER $NB_USER
|
||||
USER $NB_UID
|
||||
|
||||
# Install Python 3 packages
|
||||
# Remove pyqt and qt pulled in for matplotlib since we're only ever going to
|
||||
@@ -65,4 +65,4 @@ ENV XDG_CACHE_HOME /home/$NB_USER/.cache/
|
||||
RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" && \
|
||||
fix-permissions /home/$NB_USER
|
||||
|
||||
USER $NB_USER
|
||||
USER $NB_UID
|
||||
|
Reference in New Issue
Block a user