Skip to content

Commit

Permalink
copy . to repo_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
eeholmes authored Oct 23, 2024
1 parent 5825dac commit 6d7231d
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 @@ -29,13 +29,13 @@ RUN mandb
# Clean up extra files in ${REPO_DIR}
RUN rm -rf ${REPO_DIR}/book ${REPO_DIR}/docs

# Copy Desktop files into ${REPO_DIR}/Desktop if they exist
ONBUILD COPY . /pyrocket-child/
ONBUILD RUN if [ -d /pyrocket-child/Desktop ]; then \
# 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 \
mkdir -p ${REPO_DIR}/Desktop && \
cp -r /pyrocket-child/Desktop/* ${REPO_DIR}/Desktop/; \
cp -r ${REPO_DIR}/tmpbuild/Desktop/* ${REPO_DIR}/Desktop/; \
fi && \
rm -rf /pyrocket-child
rm -rf ${REPO_DIR}/tmpbuild/

# Revert to default user
USER ${NB_USER}

0 comments on commit 6d7231d

Please sign in to comment.