mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-17 23:13:00 +00:00
36 lines
793 B
Docker
36 lines
793 B
Docker
# A base docker image that includes juptyerhub and IPython master
|
|
#
|
|
# Build your own derivative images starting with
|
|
#
|
|
# FROM jupyter/jupyterhub:latest
|
|
#
|
|
|
|
FROM jupyter/notebook
|
|
|
|
MAINTAINER Jupyter Project <jupyter@googlegroups.com>
|
|
|
|
# install js dependencies
|
|
RUN npm install -g configurable-http-proxy
|
|
|
|
RUN mkdir -p /srv/
|
|
|
|
# install jupyterhub
|
|
ADD requirements.txt /tmp/requirements.txt
|
|
RUN pip3 install -r /tmp/requirements.txt
|
|
|
|
WORKDIR /srv/
|
|
ADD . /srv/jupyterhub
|
|
WORKDIR /srv/jupyterhub/
|
|
|
|
RUN pip3 install .
|
|
|
|
WORKDIR /srv/jupyterhub/
|
|
|
|
# Derivative containers should add jupyterhub config,
|
|
# which will be used when starting the application.
|
|
|
|
EXPOSE 8000
|
|
|
|
ONBUILD ADD jupyterhub_config.py /srv/jupyterhub/jupyterhub_config.py
|
|
CMD ["jupyterhub", "-f", "/srv/jupyterhub/jupyterhub_config.py"]
|