-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplest Dockerfile for running Jupyter for a single user
- Loading branch information
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |