From eca6c66b338c524317b37fb7365548dd6f92f475 Mon Sep 17 00:00:00 2001 From: Eli Holmes - NOAA Date: Tue, 22 Oct 2024 19:27:18 -0700 Subject: [PATCH] ONBUILD USER root --- appendix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/appendix b/appendix index 469e2ee..7458eca 100644 --- a/appendix +++ b/appendix @@ -30,12 +30,14 @@ RUN mandb RUN rm -rf ${REPO_DIR}/book ${REPO_DIR}/docs # Copy Desktop files into ${REPO_DIR}/Desktop if they exist. First copy files to tmpbuild +ONBUILD USER root ONBUILD COPY . /tmpbuild/ ONBUILD RUN if [ -d /tmpbuild/Desktop ]; then \ mkdir -p ${REPO_DIR}/Desktop && \ cp -r /tmpbuild/Desktop/* ${REPO_DIR}/Desktop/; \ fi ONBUILD RUN whoami && rm -rf /tmpbuild +ONBUILD USER ${NB_USER} # Revert to default user USER ${NB_USER}