From f35654cc2f7dbad39767800ad7f73e5af6b6812f Mon Sep 17 00:00:00 2001 From: Jusong Yu Date: Tue, 14 Nov 2023 23:57:20 +0100 Subject: [PATCH] Use mv -> cp --- stack/lab/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/stack/lab/Dockerfile b/stack/lab/Dockerfile index 86ce5ef9..ad82c36d 100644 --- a/stack/lab/Dockerfile +++ b/stack/lab/Dockerfile @@ -107,7 +107,9 @@ ENV NOTEBOOK_ARGS \ "--TerminalManager.cull_interval=60" # Set up the logo of notebook interface -COPY --chown=${NB_UID}:${NB_GID} aiidalab-wide-logo.png ${CONDA_DIR}/notebook-logo.png -# the folder of logo.png is get by find "$CONDA_DIR/lib" -path "*/notebook/static/base/images/logo.png" +COPY --chown=${NB_UID}:${NB_GID} aiidalab-wide-logo.png /tmp/notebook-logo.png + +# The directory location of logo.png is in the `/opt/conda/lib/python3.9/site-packages/notebook/static/base/images/logo.png`, but the python version may change +# I use the find to find the location and mv the logo.png to the folder # copy the logo.png to the folder as logo.png -RUN find "$CONDA_DIR/lib" -path "*/notebook/static/base/images/logo.png" -exec cp ${CONDA_DIR}/notebook-logo.png {} \; +RUN find "$CONDA_DIR/lib" -path "*/notebook/static/base/images/logo.png" -exec mv /tmp/notebook-logo.png {} \;