Skip to content

Commit

Permalink
try copying files again
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Oct 23, 2024
1 parent 236ea5c commit 1ccf23d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions appendix
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ 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 COPY . ${REPO_DIR}/tmpbuild/
ONBUILD RUN if [ -d ${REPO_DIR}/tmpbuild/Desktop ]; then \
ONBUILD COPY . /tmpbuild/
ONBUILD RUN if [ -d /tmpbuild/Desktop ]; then \
mkdir -p ${REPO_DIR}/Desktop && \
cp -r ${REPO_DIR}/tmpbuild/Desktop/* ${REPO_DIR}/Desktop/; \
fi && \
rm -rf ${REPO_DIR}/tmpbuild/
cp -r /tmpbuild/Desktop/* ${REPO_DIR}/Desktop/; \
fi
ONBUILD RUN whoami && rm -rf /tmpbuild

# Revert to default user
USER ${NB_USER}

0 comments on commit 1ccf23d

Please sign in to comment.