diff --git a/create_jupyterhub_image.sh b/create_jupyterhub_image.sh new file mode 100644 index 0000000..2b2f7c2 --- /dev/null +++ b/create_jupyterhub_image.sh @@ -0,0 +1 @@ +docker build -t jupyterhub -f jupyterhub.docker ./ diff --git a/jupyterhub.docker b/jupyterhub.docker index 051a415..ea1aee2 100644 --- a/jupyterhub.docker +++ b/jupyterhub.docker @@ -1,21 +1,22 @@ FROM debian:bullseye MAINTAINER Guillaume Anciaux ENV LANG C.UTF-8 ENV LC_ALL C.UTF-8 ## for apt to be noninteractive ENV DEBIAN_FRONTEND noninteractive ENV DEBCONF_NONINTERACTIVE_SEEN true RUN apt-get update && apt -y install nodejs npm && apt -y clean && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt -y install python3-pip && apt -y clean && rm -rf /var/lib/apt/lists/* RUN pip3 install jupyterhub RUN npm install -g configurable-http-proxy -RUN pip3 install jupyterlab notebook +RUN pip3 install jupyterlab notebook jupyterlab-git RUN mkdir -p /srv/jupyterhub/ WORKDIR /srv/jupyterhub/ +RUN ln -sf /dev/stdout /var/log/jupytherhub.log -CMD ["jupyterhub"] \ No newline at end of file +CMD ["jupyterhub", "&>>" ,"/var/log/jupyterhub.log"] \ No newline at end of file