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 f35654c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions stack/lab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 {} \;

0 comments on commit f35654c

Please sign in to comment.