-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
63 lines (51 loc) · 1.53 KB
/
Dockerfile
File metadata and controls
63 lines (51 loc) · 1.53 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
FROM ubuntu:17.04
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
python3 \
python3-dev \
python3-pip \
python3-setuptools \
libcurl4-openssl-dev \
libssl-dev \
build-essential \
npm \
nodejs-legacy \
&& \
apt-get purge && apt-get clean
ARG NB_USER=jovyan
ARG NB_UID=1000
ARG HOME=/home/jovyan
ENV LANG C.UTF-8
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
--home ${HOME} \
--force-badname \
${NB_USER}
ARG JUPYTERHUB_VERSION=0.8
RUN pip3 install --no-cache-dir \
jupyterhub==$JUPYTERHUB_VERSION \
statsd==3.2.1 \
jupyterhub-dummyauthenticator==0.3.1 \
jupyterhub-tmpauthenticator==0.4 \
nullauthenticator==1.0 \
pymysql==0.7.11 \
psycopg2==2.7.1 \
pycurl==7.43.0 \
mwoauth==0.3.2 \
cryptography==2.0.3
RUN pip3 --no-cache-dir install git+https://github.com/jupyterhub/oauthenticator@80676a3e
RUN pip3 --no-cache-dir install git+https://github.com/jupyterhub/kubespawner@1a27374
RUN pip3 nbgitpuller
RUN jupyter serverextension enable --py nbgitpuller --sys-prefix
ADD jupyterhub_config.py /srv/jupyterhub_config.py
ADD cull_idle_servers.py /usr/local/bin/cull_idle_servers.py
WORKDIR /srv/jupyterhub
# So we can actually write a db file here
RUN chown ${NB_USER}:${NB_USER} /srv/jupyterhub
# JupyterHub API port
EXPOSE 8081
USER ${NB_USER}
CMD ["jupyterhub", "--config", "/srv/jupyterhub_config.py"]
#update