Skip to content

Commit

Permalink
By default, have Dockerfile start jupyter server
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-zeller committed Jul 1, 2024
1 parent 0e29549 commit 4707189
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions binder/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,6 @@ WORKDIR ${PROJECT}
# Install the required Linux packages
RUN apt-get install -y $(grep -v '^#' binder/apt.txt); exit 0

# Expose port 8888, so it can be reached from the outside (for local testing)
EXPOSE 8888

# From here on, we are a user
USER ${NB_USER}

Expand All @@ -90,3 +87,9 @@ RUN pip install -r binder/requirements.txt; exit 0

# Run the postBuild script (to set up Jupyter, sign notebooks and more)
RUN bash binder/postBuild

# Expose port 8888, so it can be reached from the outside (for local testing)
EXPOSE 8888

# If nothing else is specified, start a Jupyter server
CMD ["sh", "-c", "jupyter lab --port=8888 --no-browser --ip=* docs/notebooks"]

0 comments on commit 4707189

Please sign in to comment.