`make build` builds the image, including network and volumes, and pulling the notebook image. This removes the number of manual steps to get started.
20 lines
619 B
Docker
20 lines
619 B
Docker
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
FROM jupyterhub/jupyterhub-onbuild:0.6.1
|
|
|
|
# Install dockerspawner and its dependencies
|
|
RUN /opt/conda/bin/pip install \
|
|
jupyterhub==0.6.* \
|
|
oauthenticator==0.4.* \
|
|
dockerspawner==0.3.*
|
|
|
|
# Copy TLS certificate and key
|
|
ENV SSL_CERT /srv/jupyterhub/secrets/jupyterhub.crt
|
|
ENV SSL_KEY /srv/jupyterhub/secrets/jupyterhub.key
|
|
COPY ./secrets/*.crt $SSL_CERT
|
|
COPY ./secrets/*.key $SSL_KEY
|
|
RUN chmod 700 /srv/jupyterhub/secrets && \
|
|
chmod 600 /srv/jupyterhub/secrets/*
|
|
|
|
COPY ./userlist /srv/jupyterhub/userlist
|