-
-
Save Analect/7c83460177a7df10fad0b447b8105424 to your computer and use it in GitHub Desktop.
image for latest jupyterhub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:17.04 | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
git \ | |
curl \ | |
python3-dev \ | |
python3-setuptools \ | |
libcurl4-openssl-dev \ | |
build-essential \ | |
python3-dev \ | |
libssl-dev \ | |
python3-pip \ | |
npm \ | |
nodejs-legacy && \ | |
apt-get purge && apt-get clean | |
ARG NB_USER=jovyan | |
ARG NB_UID=1000 | |
ARG HOME=/home/jovyan | |
RUN adduser --disabled-password \ | |
--gecos "Default user" \ | |
--uid ${NB_UID} \ | |
--home ${HOME} \ | |
--force-badname \ | |
${NB_USER} | |
RUN pip3 install --no-cache-dir \ | |
jupyterhub==0.8.0b4 \ | |
oauthenticator==0.6.1 \ | |
statsd==3.2.1 \ | |
jupyterhub-dummyauthenticator==0.3.1 \ | |
jupyterhub-tmpauthenticator==0.4 \ | |
pymysql==0.7.11 \ | |
psycopg2==2.7.1 \ | |
pycurl==7.43.0 \ | |
mwoauth==0.3.2 | |
RUN pip3 --no-cache-dir install git+https://github.com/jupyterhub/kubespawner@ae1c6d6 | |
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment