forked from jupyterhub/dockerspawner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (23 loc) · 919 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Build as jupyterhub/singleuser
# Run with the DockerSpawner in JupyterHub
FROM jupyter/datascience-notebook
MAINTAINER Project Jupyter <jupyter@googlegroups.com>
EXPOSE 8888
USER root
# fetch juptyerhub-singleuser entrypoint
RUN wget -q https://raw.githubusercontent.com/jupyterhub/jupyterhub/0.6.1/scripts/jupyterhub-singleuser -O /usr/local/bin/jupyterhub-singleuser && \
chmod 755 /usr/local/bin/jupyterhub-singleuser
ADD singleuser/singleuser.sh /srv/singleuser/singleuser.sh
USER root
ENV NB_USER="root"
ENV HOME="/home/root"
WORKDIR "/home/root/work"
# smoke test that it's importable at least
RUN sh /srv/singleuser/singleuser.sh -h
RUN pip install pymongo
RUN pip2 install pymongo
RUN apt-get update
RUN apt-get install -y build-essential libssl-dev libffi-dev
RUN apt-get install -y python-dev libxml2-dev libxslt1-dev zlib1g-dev
RUN pip2 install ga4gh
CMD ["sh", "/srv/singleuser/singleuser.sh"]