dotter-compose/jupyterhub/Dockerfile

24 lines
481 B
Docker
Raw Permalink Normal View History

FROM quay.io/jupyterhub/jupyterhub:latest
RUN useradd -m fabian
RUN useradd -m amour
RUN passwd -d fabian
RUN passwd -d amour
RUN pip install notebook
WORKDIR /data
RUN echo '#!/bin/sh \n\
\n\
echo "c = get_config()" >> /srv/jupyterhub/jupyterhub_config.py \n\
echo "c.Authenticator.allow_all = True" >> /srv/jupyterhub/jupyterhub_config.py \n\
\n\
exec jupyterhub -f /srv/jupyterhub/jupyterhub_config.py \n\
' >> /data/run.sh
RUN chmod +x /data/run.sh
CMD ["/data/run.sh"]