Skip to content

Commit

Permalink
add binder badges
Browse files Browse the repository at this point in the history
  • Loading branch information
minrk committed Sep 20, 2018
1 parent 9402b58 commit 50f7496
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Minimal Dockerfiles for Binder

[![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/binder-examples/minimal-dockerfile/master)

Binder needs only one thing to work:

- to be able to launch `jupyter notebook` as a specified user (passed via docker build args as NB_UID/NB_USER)
Expand All @@ -19,11 +21,13 @@ The absolute bare minimum for this is to set HOME to `/tmp` so that it's writabl
which would make the shortest, smallest dockerfile:

```docker
FROM python:3.6-alpine
FROM python:3.7-slim
RUN pip install --no-cache notebook
ENV HOME=/tmp
```

which you can try out: [![Binder](https://mybinder.org/badge.svg)](https://mybinder.org/v2/gh/binder-examples/minimal-dockerfile/truly-minimal)

However, it would be better to consume the NB_UID/NB_USER arguments and create a real user:

```docker
Expand Down

0 comments on commit 50f7496

Please sign in to comment.