From 6d7231d7f1cbe3281bacf95726e01ef600330867 Mon Sep 17 00:00:00 2001 From: Eli Holmes - NOAA Date: Tue, 22 Oct 2024 18:04:25 -0700 Subject: [PATCH] copy . to repo_dir --- appendix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/appendix b/appendix index 773273c..7fda650 100644 --- a/appendix +++ b/appendix @@ -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}