Skip to content

Commit

Permalink
Base notebook/init (#3)
Browse files Browse the repository at this point in the history
* fix: user misconfiguration
  • Loading branch information
eroan-marie authored Nov 28, 2024
1 parent 02ef82c commit 3b990df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions base-image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,8 @@ 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 +194,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 3b990df

Please sign in to comment.