Skip to content

Commit eca6c66

Browse files
authored
ONBUILD USER root
1 parent 1ccf23d commit eca6c66

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

appendix

+2
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ RUN mandb
3030
RUN rm -rf ${REPO_DIR}/book ${REPO_DIR}/docs
3131

3232
# Copy Desktop files into ${REPO_DIR}/Desktop if they exist. First copy files to tmpbuild
33+
ONBUILD USER root
3334
ONBUILD COPY . /tmpbuild/
3435
ONBUILD RUN if [ -d /tmpbuild/Desktop ]; then \
3536
mkdir -p ${REPO_DIR}/Desktop && \
3637
cp -r /tmpbuild/Desktop/* ${REPO_DIR}/Desktop/; \
3738
fi
3839
ONBUILD RUN whoami && rm -rf /tmpbuild
40+
ONBUILD USER ${NB_USER}
3941

4042
# Revert to default user
4143
USER ${NB_USER}

0 commit comments

Comments
 (0)