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 2
2
3
3
[ ![ Binder] ( https://mybinder.org/badge.svg )] ( https://mybinder.org/v2/gh/binder-examples/minimal-dockerfile/master )
4
4
5
- Binder needs only one thing to work:
5
+ [ Binder] ( https://mybinder.org ) needs only one thing for images to work:
6
6
7
7
- to be able to launch ` jupyter notebook ` as a specified user (passed via docker build args as NB_UID/NB_USER)
8
8
@@ -14,11 +14,11 @@ RUN pip install --no-cache notebook
14
14
15
15
That's * almost* everything.
16
16
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,
18
18
which requires certain permissions like being able to write to the home directory.
19
19
20
20
The 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 :
22
22
23
23
``` docker
24
24
FROM python:3.7-slim
@@ -43,3 +43,5 @@ RUN adduser --disabled-password \
43
43
${NB_USER}
44
44
WORKDIR ${HOME}
45
45
```
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