Skip to content

Commit

Permalink
simplest Dockerfile for running Jupyter for a single user
Browse files Browse the repository at this point in the history
  • Loading branch information
ttimbers committed Feb 4, 2022
1 parent 59c226e commit 181029e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 1 deletion.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM continuumio/miniconda3

RUN conda install -y --quiet \
jupyter \
jupyterlab
RUN mkdir -p /opt/notebooks

EXPOSE 8888

USER root

#CMD ["/usr/local/bin/start-notebook.sh"]

COPY start-notebook.sh /usr/local/bin/

RUN chmod +x /usr/local/bin/start-notebook.sh
ENTRYPOINT ["/usr/local/bin/start-notebook.sh"]
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# jupyterlab
# jupyterlab

Usage:

```
docker run --rm -i -t -v $(pwd):/opt/notebooks -p 8888:8888 ubcdsci/jupyterlab
```
5 changes: 5 additions & 0 deletions start-notebook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

jupyter lab \
--notebook-dir=/opt/notebooks --ip='*' --port=8888 \
--no-browser --allow-root

0 comments on commit 181029e

Please sign in to comment.