Sometimes you just want to inherit from one of the pre-built images maintained by the Jupyter Project's Docker Stacks, and perhaps add just an extra library or two. This example shows you how to do that - check out the Dockerfile.
Note that in this case we are using a docker image that already satisfies the criteria for use on binder, we don't need to install notebook or anything manually.