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 {} \;