Skip to content

Commit

Permalink
update image
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwangcs committed Dec 16, 2024
1 parent 8aeec40 commit ba1aa0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions images/workbench-jupyter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -174,16 +174,16 @@ ENV JUPYTER_CONFIG_DIR $JUPYTER_USER_HOME_DIR/.jupyter
RUN mkdir -p $JUPYTER_CONFIG_DIR
COPY jupyter_server_config.py $JUPYTER_CONFIG_DIR

# Copy the `container-post-startup-hook.sh` script to the user's home directory
RUN mkdir -p "${JUPYTER_USER_HOME_DIR}/.workbench"
COPY container-post-startup-hook.sh "${JUPYTER_USER_HOME_DIR}/.workbench/container-post-startup-hook.sh"

# Make sure the JUPYTER_USER owns the home directory
RUN chown -R $JUPYTER_USER:users $JUPYTER_USER_HOME_DIR

# Set the working directory to the user's home directory
USER $JUPYTER_USER
WORKDIR $JUPYTER_USER_HOME_DIR

# Copy the `container-post-startup-hook.sh` script to the user's home directory
COPY container-post-startup-hook.sh "${JUPYTER_USER_HOME_DIR}/.workbench/container-post-startup-hook.sh"

# Expose the application port and execute the `container-post-startup-hook.sh` script
# to start the Jupyter server
# The jupyter server will via the `container-post-startup-hook.sh` script
Expand Down

0 comments on commit ba1aa0f

Please sign in to comment.