Skip to content

Commit

Permalink
fix: user misconfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
eroan-marie committed Nov 28, 2024
1 parent efdcc5e commit c6a9d62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion base-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ ONBUILD RUN echo "Checking for 'jupyter_notebook_config.py'..." \
&& cp jupyter_notebook_config.py /etc/jupyter \
; fi

# ONBUILD USER ${NB_USER}
ONBUILD USER ${NB_USER}

# We want to keep our images as reproducible as possible. If a lock
# file with exact versions of all required packages is present, we use
Expand Down Expand Up @@ -184,6 +184,9 @@ ONBUILD RUN echo "Checking for pip 'requirements.txt'..." \
${NB_PYTHON_PREFIX}/bin/pip install --no-cache -r requirements.txt \
; fi


ONBUILD USER root

ONBUILD COPY resources/layer-cleanup.sh /usr/local/bin
ONBUILD RUN chmod +x /usr/local/bin/layer-cleanup.sh

Expand All @@ -192,6 +195,7 @@ ONBUILD RUN for script in $(find "resources" -type f -name "install.sh"); do \
echo "Executing $script"; \
bash "$script"; \
layer-cleanup.sh; \
chown -R ${NB_USER}:${NB_USER} ${HOME}; \
done

ONBUILD USER ${NB_USER}
Expand Down

0 comments on commit c6a9d62

Please sign in to comment.