File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 22
33[ ![ Binder] ( https://mybinder.org/badge.svg )] ( https://mybinder.org/v2/gh/binder-examples/minimal-dockerfile/master )
44
5- Binder needs only one thing to work:
5+ [ Binder] ( https://mybinder.org ) needs only one thing for images to work:
66
77- to be able to launch ` jupyter notebook ` as a specified user (passed via docker build args as NB_UID/NB_USER)
88
@@ -14,11 +14,11 @@ RUN pip install --no-cache notebook
1414
1515That's * almost* everything.
1616
17- The remaining pieces is that the specified user must be able to * start* the notebook,
17+ The remaining piece is that the specified user must be able to * start* the notebook,
1818which requires certain permissions like being able to write to the home directory.
1919
2020The absolute bare minimum for this is to set HOME to ` /tmp ` so that it's writable,
21- which would make the shortest, smallest dockerfile :
21+ which would make the shortest, smallest Dockerfile that works on Binder :
2222
2323``` docker
2424FROM python:3.7-slim
@@ -43,3 +43,5 @@ RUN adduser --disabled-password \
4343 ${NB_USER}
4444WORKDIR ${HOME}
4545```
46+
47+ From this point, you can start adding files, installing packages, etc.
You can’t perform that action at this time.
0 commit comments