Skip to content

Commit

Permalink
Use mv -> cp
Browse files Browse the repository at this point in the history
  • Loading branch information
unkcpz committed Nov 14, 2023
1 parent 1f0aa41 commit 0f55e5e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions stack/lab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ ENV NOTEBOOK_ARGS \

# 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"

# 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 ${CONDA_DIR}/notebook-logo.png {} \;

0 comments on commit 0f55e5e

Please sign in to comment.